LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-27-2005, 05:30 PM   #1
schneemann
Member
 
Registered: Nov 2005
Location: Nord Vancouver
Distribution: suse 10.0
Posts: 106

Rep: Reputation: 15
What`s all that rwsr-xr-x...?


Is few people can give me hand please and tell what that tell me rwsr-xr-x....?.
 
Old 11-27-2005, 05:43 PM   #2
deVas
LQ Newbie
 
Registered: Jun 2004
Posts: 14

Rep: Reputation: 0
file right for user - group - other
r - read
w - write
x - execute
s - suid (takes the rights of user or group when executed)
d - directory
e.t.c.
see man chmod
devas
 
Old 11-27-2005, 06:23 PM   #3
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
to make it more complex.. this can also be done by numbers.

7 = all rights
6 = read and write
5 = read and execute
4 = read only
3 = execute and write
2 = write only
1 = execute only
0 = no rights

Standard it is done by 3 numbers (one for the user, one for the group, one for everyone else): e.g. 755 or 644 etc etc..

however if you want to set a suid (also called sticky bit) you need to add an extra number infront of the 3 numbers. That numbers is 1.

e.g. chmod 1755 makes a file suid for the user and give all rights to this user the file is owned by. For the group the file is owned by it makes it read/execute only. and for anything/one else too.



Last edited by teebones; 11-27-2005 at 06:35 PM.
 
Old 11-27-2005, 06:27 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,162

Rep: Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205
Agree... look at man chmod.

The string "rwsr-xr-x" is read as three groups of three:
  • The first group, "rws," says that the owner of this file has full access to the file, and that it is a setuid program which will execute with the owner's identity.
  • The second group, "r-x", means that users who belong to this 'group' have read and execute permission, but not write.
  • The third group, also "r-x", means that others (those who are neither the owner nor group-members) also can read and execute, but not write.
For directories, the permissions control whether you can:
  • See a list of the files in the directory (Read).
  • Insert and remove files here (Write).
  • Have access to files here if you know their exact name (Execute).

When people refer to these permissions numerically, they use a digit for each "group of three" from left to right. There are eight possibilities, corresponding to the eight numbers (0-7) that can be produced by three binary bits... so-called octal notation.
Code:
   Number    Binary Bits     Permissions
   --------  ----------      ------------
       0         000             ---
       1         001             --x
       2         010             -w-
       3         011             -wx
...
       7         111             rwx
Which real computer-geeks of course know by heart.

Last edited by sundialsvcs; 11-27-2005 at 06:33 PM.
 
Old 11-27-2005, 09:29 PM   #5
mokele
Member
 
Registered: Jan 2005
Location: Puerto Rico
Distribution: Slackware 13
Posts: 146

Rep: Reputation: 15
Read this all the way through te bottom.

cheers

-West

Last edited by mokele; 11-27-2005 at 09:30 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
-rwsr-xr-x peeples Linux From Scratch 1 10-19-2002 10:12 AM


All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration