Skip to main content

theThe '-R' usermod-R' usermod option does not change the root dir for a user, it changes the root dir 'usermod'usermod operates inside of, so you can use it to modify users inside chroot environmentsmodify users inside chroot environments.

Edit: I assume what you want to do is have the user placed inside a chroot environment when he logs in over SSH, you can use the 'ChrootDirectory' sshd_config'ChrootDirectory' sshd_config option to do that.

the '-R' usermod option does not change the root dir for a user, it changes the root dir 'usermod' operates inside of, so you can use it to modify users inside chroot environments.

Edit: I assume what you want to do is have the user placed inside a chroot environment when he logs in over SSH, you can use the 'ChrootDirectory' sshd_config option to do that.

The '-R' usermod option does not change the root dir for a user, it changes the root dir usermod operates inside of, so you can use it to modify users inside chroot environments.

Edit: I assume what you want to do is have the user placed inside a chroot environment when he logs in over SSH, you can use the 'ChrootDirectory' sshd_config option to do that.

Spelling
Source Link
AReddy
  • 3.2k
  • 6
  • 37
  • 77

the '-R' usermod option does not change the root dir firfor a user, it changes the root dir 'usermod' operates inside of, so you can use it to modify users inside chroot environments.

Edit:Edit: I assume what you want to do is have the user placed inside a chroot environment when he logs in over SSH, you can use the 'ChrootDirectory' sshd_config option to do that.

the '-R' usermod option does not change the root dir fir a user, it changes the root dir 'usermod' operates inside of, so you can use it to modify users inside chroot environments.

Edit: I assume what you want to do is have the user placed inside a chroot environment when he logs in over SSH, you can use the 'ChrootDirectory' sshd_config option to do that.

the '-R' usermod option does not change the root dir for a user, it changes the root dir 'usermod' operates inside of, so you can use it to modify users inside chroot environments.

Edit: I assume what you want to do is have the user placed inside a chroot environment when he logs in over SSH, you can use the 'ChrootDirectory' sshd_config option to do that.

Source Link
ifb
  • 326
  • 1
  • 7

the '-R' usermod option does not change the root dir fir a user, it changes the root dir 'usermod' operates inside of, so you can use it to modify users inside chroot environments.

Edit: I assume what you want to do is have the user placed inside a chroot environment when he logs in over SSH, you can use the 'ChrootDirectory' sshd_config option to do that.