Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-21-2004, 11:29 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2003
Posts: 27
Rep:
|
user home dir/permissions
i am creating a user that friends can use to winscp into my box and get movies.
i have set that users home dir to a folder called movies under my home dir.
but i need to make it so that the user cant go to any dir's othen then the one they are set to as thier home.
also, how do i set it so that the user can read that one folder in my home dir. as of right now i get a "permission denied" when i try to access that folder from that user.
|
|
|
|
07-21-2004, 11:50 AM
|
#2
|
|
Member
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61
Rep:
|
Did you try using SymLinks?
for example the directory /root/movies
ln -s /root/movies /home/user/movies
remember to give the right permissions to the /root/movies directory.
|
|
|
|
07-21-2004, 11:57 AM
|
#3
|
|
LQ Newbie
Registered: Oct 2003
Posts: 27
Original Poster
Rep:
|
im lost.... i havent heard of Symlinks before.. although i am kinda a linux newb...so you'll have to bare with me.
to me it sounds like you are trying to show me how to shortcut a dir.
|
|
|
|
07-21-2004, 12:06 PM
|
#4
|
|
Member
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61
Rep:
|
Symlinks are simbolic links.
this binary do a link of your files or directories to another place in your system. this is usefull to evite replicate files and to save disk space. and it synchronizes the two directories so it have a lot of functions.
the -s option, make the links "not hard" so if the user deletes a file in the linked directory, it dont is deleted from the original directory. for more info of the ln command y recomend you to read the man pages.
saludos
|
|
|
|
07-21-2004, 12:20 PM
|
#5
|
|
LQ Newbie
Registered: Oct 2003
Posts: 27
Original Poster
Rep:
|
thats not exactly what im looking for... what im doing is this
my account is xilace, the account i will have friends using is soaper.
i have set soapers home directory as /home/xilace/movies. i need to make it so that soaper only has permission to read that directory to get files out of it. soaper should ONLY have access to that ONE directory under xilace's home directory.
that is what im trying to accomplish.
thanks for any help.
|
|
|
|
07-21-2004, 12:33 PM
|
#6
|
|
Member
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61
Rep:
|
if you wanna do that you have to chroot one mini system in each home directory. i never do that but for this to work, you must have a complete working filesystem in each
home directory (/home/foo/dev /home/foo/bin /home/foo/usr/bin /home/foo/etc
...).
This is not usually what you want for normal users, i recommend you to just start one ftp server like pureftpd, and enable the chroot option.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:52 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|