LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-03-2004, 09:06 PM   #1
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Rep: Reputation: 15
Home directory permissions reverting back


I'm working on an ftp server that uses the home directory for the ftp user as the anonymous user folder. Anonymous users can't upload, but I want other users to be able to upload to that area. I added those users to the ftp group then did "chmod 770 /home/ftp" so that people in the ftp group could write to the directory. Then I made symlinks from the home directories of the users to /home/ftp.

Everything worked fine at first. I could login as those users with ssh (which was how I was doing all the work) and with ftp and I could read and write to /home/ftp with two different users. However, I logged back in later with ssh and the permissions of /home/ftp had changed back to 700. Neither user could follow the symlinks using either ssh or ftp, so the permissions were definitely changed.

If I log out and back into ssh soon after I do this, the symlink still works. I'm thinking it's time-based, to the tune of a few minutes.

The server runs Mandrake 9.2. I would appreciate any ideas.
 
Old 02-04-2004, 02:48 AM   #2
jerrymei
LQ Newbie
 
Registered: Feb 2004
Distribution: Red Hat
Posts: 20

Rep: Reputation: 0
Hi,

If you want to provide one or more real users with the same access to the file system that they would have if they logged in directly, you could redfine that user or group as real by setting a realuser or realgroup value for the user or group, respectively.(For example, add a line that reads "realuser joe".)

Hope it would be useful.
 
Old 02-04-2004, 03:53 PM   #3
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Original Poster
Rep: Reputation: 15
I don't think it has anything to do with ftp problems, because it's doing the same thing over ssh. I've done some tests and this problem affects every folder in /home, whether it be a home directory or not. Regardless of the folder mode, it is changed back to 700. I'm guessing it's some mandrake service running, so I'll look into that.
 
Old 02-04-2004, 08:21 PM   #4
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Original Poster
Rep: Reputation: 15
It turns out that it was a Mandrake problem. Drakperm was set to set the mode of all directories in /home to 700. I just added another entry that sets /home/ftp to 1770.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverting back after install chrisbhall Linux - Newbie 2 01-06-2005 08:19 AM
directory permissions reverting to default Edrin Linux - Newbie 4 11-18-2004 11:05 AM
Directory permissions changing back? elderain Linux - Newbie 0 03-08-2004 06:02 PM
Users home directory. Permissions. jsbush Linux - Newbie 4 10-29-2003 08:13 AM
Reverting back to XFree86 3.3.6 rdjones Slackware 1 10-21-2003 12:57 AM


All times are GMT -5. The time now is 05:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration