Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CLOSED] chmod query for hidden directories
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Sat Jul 16, 2005 7:20 pm    Post subject: [CLOSED] chmod query for hidden directories Reply with quote

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
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Sun Jul 17, 2005 5:29 am    Post subject: Reply with quote

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
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Fri Jul 22, 2005 3:36 pm    Post subject: Reply with quote

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!" :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum