Opened 9 years ago

Closed 9 years ago

Last modified 20 months ago

#7606 closed enhancement (fixed)

Confine DS-backup ssh+rsync

Reported by: martinlanghoff Owned by: douglas
Priority: normal Milestone:
Component: school server Version: not specified
Keywords: ds-backup Cc: martin.langhoff
Blocked By: Blocking:
Deployments affected: Action Needed: never set
Verified: no


DS-Backup is using ssh+rsync - we need to confine the SSH access with one or more of

  • rssh
  • chroot
  • SELinux

Rahul has already done an initial RSSH package for us - see

Change History (10)

comment:1 Changed 9 years ago by martinlanghoff

rssh is in the XS repo now, so task now breaks into

  • provide a config file in xs-config that allows rsync and sftp
  • change idmgr to set the appropriate shell, and also add users to a "xousers" group
  • idmgr upgrade script to add shell & group membership to preexisting accts
  • idmgr to depend on rssh, & version of xs-config
  • test that ds-backup clients still work correctly

comment:2 Changed 9 years ago by martin.langhoff

  • Owner changed from martinlanghoff to martin.langhoff

comment:3 Changed 9 years ago by martin.langhoff

  • Milestone changed from xs-0.3 to xs-0.4

comment:4 Changed 9 years ago by douglas

  • Owner changed from martin.langhoff to douglas
  • Status changed from new to assigned

comment:5 Changed 9 years ago by cjb

Hm, I don't understand. Why do we need to do this? Doesn't the benefit kids would get from access to a machine that they're likely to understand more about than their administrators outweigh security reasons (which haven't been explained here) for not allowing them access?

I'm fine with compartmentalizing users to their own uid, but this work seems to go farther than that into limiting them to no shell access whatsoever. That sounds like a mistake to me.

comment:6 Changed 9 years ago by douglas

hi cjb,

You might be right, but that sounds like a different bug ("give kids secure shell access").

I'll close this one soon.

comment:7 Changed 9 years ago by martin.langhoff

  • Cc martin.langhoff added

Hi Chris - for now at least...

  • There's nothing in the XS for kids that can be used via shell.
  • XS provides infrastructure, so we don't want them to experiment with it as they are likely to unknowingly mess up everyone's access.
  • The "admins" of the machine are the NOC, not the teacher, so it is fair to assume that they know linux.
  • We hand out an account to anyone who does an XML-RPC dance with us.

With the last point in mind, I want to limit the access that a user created with a weakly authenticated mechanism has. Privilege escalation bugs are a serious concern.

If we later provide facilities to be explored via shell, we'll revisit this. In the meantime, they have their own Linux machine to play with, with the advantage that if a kid messes up, it only affects that kid and his/her files are hopefully backed up so can be retrieved after a reflash.

comment:8 Changed 9 years ago by martin.langhoff

The rpms are done and published, and the rssh.conf has made it into xs-config too. Calling it done.

comment:9 Changed 9 years ago by martin.langhoff

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:10 Changed 20 months ago by Quozl

  • Milestone xs-0.4 deleted

Milestone xs-0.4 deleted

Note: See TracTickets for help on using tickets.