Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i used to know in windows that a directory can inherit permission from its parent directory, same goes to files created inside the directory, that doesn't seem to work quite so in linux ext2 file system.
I'm working on mandrake 10.0 & doing this as root
i created in my /tmp [drwxrwxrwxt] a directory named stk
it got [drwxr-xr-x] why is that ?
where did the sticky [##########t] go ?
what does the sticky even mean to a directory ?
can i give 2 users different permission like in winz ?
why when i create a dir inside the stk dir, say <t> & do chmod 1777 /etc/stk/t it get [drwxrwxrwt] ? i mean where is the the x[ExECUTE] of the all group went ?
the umask settings determines what a newly created file gets for its permissions i do believe
the sticky bit for directory's was something like only suers that created the file can delete it, something like that i think
you can only give 1 user a permission setting, 1 group a permission setting and everyone a permission setting..... thats it, nothing else, unless you want to use rasbac (i think thats its name), it comes with security (at least role based access control thingy does), you can use that to create more complex permission settings if you want to take the time to set it up
as for that last one, the "t" probably hide it (thats why i don't exactly like ls, as it displays permissions in long letters, and not nice numbers that can be more accurate at times)
From `info coreutils`:
The permissions listed are similar to symbolic mode specifications
(*note Symbolic Modes::). But `ls' combines multiple bits into the
third character of each set of permissions as follows:
`s'
If the setuid or setgid bit and the corresponding executable
bit are both set.
`S'
If the setuid or setgid bit is set but the corresponding
executable bit is not set.
`t'
If the sticky bit and the other-executable bit are both set.
`T'
If the sticky bit is set but the other-executable bit is not
set.
`x'
If the executable bit is set and none of the above apply.
if user do nat have write permission (just read permission) in a directory, then they can create or delete file sin that directory. sticky bit is set to prevent users from doing that.
you can give two users diffrent permissions. just set them up in diffrent groups and change the file and directory owner ship and permissions according to your requirments.
the execute bit for a directory means that you can enter that directory. you really don't expect to execute a directory. so it just means that you can enter that directory.
by doing as said above (my previous post) we give every one the permission to write & delete their own files in the folder
the sticky bit enforces that i will only temper with my own files, meaning that i can not read/write to files i'm not their owner, right ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.