1753309 Members
6650 Online
108792 Solutions
New Discussion

chroot

 
DeafFrog
Valued Contributor

chroot

Hi gurus , 

I have cretaed a chroot enviornment for user1 and its working as expected.

The requirement is another user2 in the server should be able to cd to /chroot location and cp files elsewhere in the server.

!) i tried making user1 and user 2 group same .this leads to user2 being locked in /chroot as well.

2)if i used Match user in sshd_config , and chown :group the /chroot , user1 is not able to sftp.

can someone please share ur experince with this .

BR, 

RT.

FrogIsDeaf
2 REPLIES 2
Steven Schweda
Honored Contributor

Re: chroot

> I have cretaed a chroot enviornment for user1

   How, exactly?

> and it[']s working as expected.

   When you do what, exactly?

> !) i tried making user1 and user 2 group same .this leads to user2
> being locked in /chroot as well.

   I know nothing -- See above -- but I don't see why that would happen.

> 2)if i used Match user in sshd_config , and chown :group the /chroot ,
> user1 is not able to sftp.

   Does this mean that your "a chroot enviornment" applies to SSH/SFTP
only?  Again, details of exactly what you did might be more helpful than
a vague description of what you thought that you did.  Also, "is not
able to" is not a useful problem description.  It does not say what you
did.  It does not say what happened whan you did it.

> can someone please share ur experince with this .

   I may have none, but it depends on exactly what "this" is.

DeafFrog
Valued Contributor

Re: chroot

Hi Steven ,

i used chroot.sh root to create chroot env, for user1,with only sftp access.

user2 is normal user of the system.However user2 require to have access to /chroot folder.

user2 should be able to copy files and directory from /chroot directory of user1.

Regards,

RT

 

 

FrogIsDeaf