View previous topic :: View next topic |
Author |
Message |
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Sat Jul 16, 2005 7:20 pm Post subject: [CLOSED] chmod query for hidden directories |
|
|
Perhaps a simple answer? Is there a chmod command that I can use which would hide all directories/files and prevent their listing to all other than those permitted to see?
I know that this was available under Novell, but have looked about and can't find anything like this for UNIX. Basically, when certain users look at certain file structures, they only see what is relevant to them.
Last edited by trossachs on Sun Jul 24, 2005 5:38 pm; edited 1 time in total |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Sun Jul 17, 2005 5:29 am Post subject: |
|
|
Hi.
If I understood your question correctly, using chmod what you can do is remove the right to read and execute in a dir, which would prevent an user from seeing what's inside that dir and cd to it. I don't think you can hide parts of a dir to a user with the standard UNIX permissions.
I think that you might be interested in some tools that work with extended attributes. Look at the following: setfattr getfattr attr chattr lsattr. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Fri Jul 22, 2005 3:36 pm Post subject: |
|
|
No worries mate thanks. I thought it was a bit of a long shot. I'm not even sure that Novell still have this (we go back to NetWare v3.2 and prior) feature in their quest to "M$ mimic their own environment!" |
|
Back to top |
|
|
|