Hide in linux

Reply

Join Date: Aug 2005
Posts: 20
Reputation: chrchcol is an unknown quantity at this point 
Solved Threads: 0
chrchcol chrchcol is offline Offline
Newbie Poster

Hide in linux

 
0
  #1
Aug 10th, 2005
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?
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 1,620
Reputation: kc0arf is a jewel in the rough kc0arf is a jewel in the rough kc0arf is a jewel in the rough 
Solved Threads: 51
Team Colleague
kc0arf kc0arf is offline Offline
Posting Virtuoso

Re: Hide in linux

 
0
  #2
Aug 10th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: Hide in linux

 
0
  #3
Sep 2nd, 2005
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.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: May 2002
Posts: 18
Reputation: knalb is an unknown quantity at this point 
Solved Threads: 0
knalb knalb is offline Offline
Newbie Poster

Re: Hide in linux

 
1
  #4
Sep 14th, 2005
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...
This post was generated by a team of Attack Squirrels.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Kernels and Modules Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC