Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dear All,
I am trying to chroot a user to just a folder and trying to follow the steps here http://www.thisisnotsupported.com/sf...il-on-centos6/ .The problem I am stuck here useradd -d /usr/local/test1 -s /bin/false -G sftponly user1 it gives me useradd: user 'user1' already exits. The problem I have add user1 before this steps. So how to go about it.
Dear All,
I can delete but for learning purpose I would like to try to am I doing this rite
usermod -d /usr/local/test1 -s test1 I do not know what to put for the path of new shell?
Dear All,
I can delete but for learning purpose I would like to try to am I doing this rite
usermod -d /usr/local/test1 -s test1 I do not know what to put for the path of new shell?
Code:
#usermod -d (path to dir) -s (path to shell) -G (group name) username
Dear All,
Thank you all that works and even the securing works the user can just sftp and see only one folder. Will there be any loophole for this sort of settings where they can access the other files via other routes?
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
Rep:
Go on the thread where all the post are shown on the top right corner you will see the place where it is written
"Please Mark this thread as solved if you feel a solution has been provided. "
just above were it is written "Post Reply"
Dear Deepak,
Ok what I can see right left top is post reply and below is a row with Thread Tools LinkBack Search this Thread Rate Thread ? So I still dont see the marked as solved? Thank you.
Dear Deepak,
Ok what I can see right left top is post reply and below is a row with Thread Tools LinkBack Search this Thread Rate Thread ? So I still dont see the marked as solved? Thank you.
It seems there is some problem as even i don't see any "solved" option in my thread. I will request the moderator to look into this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.