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.
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963
Rep:
adding users
Hi all
can any one point me to some thing that is quiet simple to under stand
for adding users to Fedora Core 2 and giving him or her a disk quoter of 50megs and to be able to lock that user in his folder with out surfing though the system.
I got the user in and add a link to his folder.
Do i need to give back the folder to the user.
Here is what i done sofar.
Code:
[root@localhost home]# cd user/
[root@localhost user]# ls -al
total 24
drwx------ 2 user user 4096 Sep 1 01:59 .
drwxr-xr-x 5 root root 4096 Sep 1 01:55 ..
-rw-r--r-- 1 user user 24 Sep 1 01:41 .bash_logout
-rw-r--r-- 1 user user 191 Sep 1 01:41 .bash_profile
-rw-r--r-- 1 user user 124 Sep 1 01:41 .bashrc
-rw-r--r-- 1 user user 120 Sep 1 01:41 .gtkrc
lrwxrwxrwx 1 root root 18 Sep 1 01:59 sbs -> /var/www/sites/sbs
[root@localhost michael]#
This is only a sample, I allways seem to get real lost on this side of things.
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963
Original Poster
Rep:
yer
I added a folder called sbs under /var/www/sites ( /var/www/sites/sbs )
Then i added the user to the system with his pass ok
then i added the link to sbs using WinSCP3 so under that users home their is a folder with a short cut to sbs
user path is /home/user
I got the vsftpd working and it allows user to log in etc user can write to his folder but not sbs.
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963
Original Poster
Rep:
I'm not to sure what you mean
but i hope this is what you mean
Code:
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
when users login to the ftp are they able to change directory to /home or / on the ftp server or they're locked inside their /home/username(which appears to be / on their ftp client)
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963
Original Poster
Rep:
User can now write and read files in that directory /var/www/sites/sbs
and he's able to write in /home/user
just hinking about it user wouldn't need to write into the home/user just sbs or is that the way its meant to be, i under one can also have a home page there as well EG: http://localhost/~user/
is this right.
Is there anyway stoping user from surfing into the system directory. Just want to lock that user in.
TT
Last edited by tommytomato; 09-01-2004 at 12:17 AM.
yea you're right, though I just did copy and paste from your line :-)
Quote:
just hinking about it user wouldn't need to write into the home/user just sbs or is that the way its meant to be, i under one can also have a home page there as well EG: http://localhost/~user/
is this right.
If Apache is configured to allow UserDir's then yes http://localhost/~user/ will work, by default I think the directory is /home/user/public_html
Quote:
Is there anyway stoping user from surfing into the system directory. Just want to lock that user in.
Yeah use chroot_local_user
however if you do this symlinks will cease to work
but you can get around it by using mount --bind
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.