944,028 Members | Top Members by Rank

Ad:
Aug 10th, 2005
0

Hide in linux

Expand Post »
I need to able to hide a directory that is already created. More importantly when an ftp user logs in I want them to not be able to see a certian directory. It already has root permissions, any ideas?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chrchcol is offline Offline
22 posts
since Aug 2005
Aug 10th, 2005
0

Re: Hide in linux

Hello,

Inside of linux, you can make a hidden directory by placing a period in front of it, such as /home/testuser/.hiddendir The directory will not show up with a casual dir or ls command, but it will show up with a ls -al or ls -a command. It does nothing to prevent someone from getting into the directory either.

We also need some clarification concerning your FTP process. You can already restrict a FTP user to a certain directory tree, just by editing where they can go within the FTP server, and the /etc/passwd files which control the scope of the user. What are you specifically trying to do? What is your OS of choice?

Thanks,

Christian
Team Colleague
Reputation Points: 121
Solved Threads: 57
Posting Virtuoso
kc0arf is offline Offline
1,629 posts
since Mar 2004
Sep 2nd, 2005
0

Re: Hide in linux

If the user is not in the appropriate group, or if they're not the owner of the folder, they fall in the "Other" category. If you place a period in front, like Christian mentioned, you'll hide it. If you simply remove the read priviledge from the other group, that would do it. That way, they couldn't get a listing of the directory

For instance, if you wanted the group and the owner associated with read/write privs, but didn't want non-group members to read it, you could do chmod 660 foldername

Of course, if you really don't want people to access it, put it in a place they can't get to. If you've got an FTP root directory, put that folder in a directory that the unauthorized user has no access to.
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Sep 14th, 2005
1

Re: Hide in linux

also, most decent ftp daemons allow you to deny access to dot files, and directories.. so if its 'hidden' they can't get at it...
Reputation Points: 15
Solved Threads: 0
Newbie Poster
knalb is offline Offline
18 posts
since May 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Kernel and Hardware Setup Forum Timeline: Setting up a Dual Boot System with SuSe 9.2 pro and WinXP
Next Thread in Linux Kernel and Hardware Setup Forum Timeline: DMA disabled





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC