LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-21-2004, 11:29 AM   #1
xilace
LQ Newbie
 
Registered: Oct 2003
Posts: 27

Rep: Reputation: 15
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.
 
Old 07-21-2004, 11:50 AM   #2
CleonII
Member
 
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61

Rep: Reputation: 15
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.
 
Old 07-21-2004, 11:57 AM   #3
xilace
LQ Newbie
 
Registered: Oct 2003
Posts: 27

Original Poster
Rep: Reputation: 15
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.
 
Old 07-21-2004, 12:06 PM   #4
CleonII
Member
 
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61

Rep: Reputation: 15
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
 
Old 07-21-2004, 12:20 PM   #5
xilace
LQ Newbie
 
Registered: Oct 2003
Posts: 27

Original Poster
Rep: Reputation: 15
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.
 
Old 07-21-2004, 12:33 PM   #6
CleonII
Member
 
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock user in home dir JJX Linux - General 9 06-28-2011 02:09 PM
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 01:08 AM
Permissions home dir reset automatically Marco Vermunt Linux - Newbie 1 01-24-2005 01:50 PM
How can I define permissions on a /home/user dir _before_ creating it with adduser skunkburner Linux - General 6 03-18-2004 03:42 PM
Lock user in their home dir MarleyGPN Linux - Software 1 04-26-2003 05:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration