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 - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-08-2007, 11:01 PM   #1
stevemisawa
LQ Newbie
 
Registered: Sep 2007
Posts: 15

Rep: Reputation: 0
Unhappy home dir permissions


hello,

thanks in advance for any and all help.

ok, running RH AS-3 i ftp into a new account today and i seen something new and not to my liking. when i ftp in i can see everything, other dir's, other user acct's. dont recall this ever doing this behavior before. so i have a few questions(forgive my stupidity)

what perms is the /home dir supposed to have set?

is there an easy way to fix this issue, so that users will go directly into their acct and not see anything above their dir?

what perms is the /user dir supposed to have set?

thanks again
 
Old 12-08-2007, 11:37 PM   #2
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Hi,


/home should be 755 and owned by root

The other one, I don't really know if you're talkin about '/usr' or acctually an '/user' directory, if it is the first one should be 755 too.

About a fix, there is, it should be done using the configuration file of the ftp server.

In the ftp servers I've used (pure-ftpd, proftpd, vsftpd) you can 'chroot' users, you don't make a very clear statement about if it is your server, other server and you're configuring it, what server is....so I can't give you more detail than that. Check the manual of the running ftp server regarding to chrooting users.




Regards
 
Old 12-08-2007, 11:47 PM   #3
stevemisawa
LQ Newbie
 
Registered: Sep 2007
Posts: 15

Original Poster
Rep: Reputation: 0
sorry forgot about that,

useing vsFTP

refering to user dir's in /home (/home/chris)

the /home perms are and were at 755

thanks again
 
Old 12-09-2007, 12:07 AM   #4
stevemisawa
LQ Newbie
 
Registered: Sep 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Smile

ACRON 0248 thanks,

i found what i needed for the chroot, with your help.

i added this line to the vsftpd.conf file: chroot_local_user=YES

that fixed the out of dir wandering, thanx again. hope that helps save someone from a headache.
 
Old 12-09-2007, 12:30 AM   #5
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Good you get it to work



Regards
 
  


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
Setting up sftp access to a part of my home dir, don't have root permissions frankie_DJ Linux - Networking 3 02-06-2007 09:17 AM
Permissions home dir reset automatically Marco Vermunt Linux - Newbie 1 01-24-2005 01:50 PM
user home dir/permissions xilace Linux - Security 5 07-21-2004 12:33 PM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 07:54 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:56 AM.

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