reading permissions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers reading permissions
# 1  
Old 09-18-2003
reading permissions

in my unix text, an example of user/group/other permissions is given as follows:

drwxr-xr-x

Why are there 2 letter 'r's given under user permissions?

I understand, btw, that d is for directory, not dr.

I appreciate your help.
# 2  
Old 09-18-2003
For directories, having read permission means you can get directory listing. Having execute permission means you can enter that directory.

The three sets of permissions pertain to user (rwx), group (r-x) and others (r-x) respectively.
# 3  
Old 09-18-2003
In addition.

The - does not mean ending user part, but it means no permission set.

We also cal your permission 755, this is a seven for user permission a 5 for group permission and a 5 for others.

The seven is calculated as following :

r w x
4 2 1

Each permission has it's own standard value. So User permission is seven (4 + 2 + 1). Now you understand that your group permission is 5 :

r - x
4 - 1

Regs David
# 4  
Old 09-18-2003
Thank you. If I understand you, one should read the permissions with no spaces at all. In the example above, the permissions are as follows, right?

user: rwx
group: r-x
other: r-x

Thanks again.
# 5  
Old 09-18-2003
Correct!

Forgotten to mention the first character.

d = directory
- = means normal file (Binary or plain text)
c = character device
b = block-device
f = fifo-file
p = pipe-file

Anyway. Don't get confused in it when you see one of the above mentioned characters.

Regs David
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Permissions

Hi guys, i write the below script to make the user get to the directory that interesting. Now what I am trying is to check the permissions of the directory and if the directory exists to check the reading options. echo "Please enter your desire folder directory ( \yourfolders) ?: \c" ... (9 Replies)
Discussion started by: mikerousse
9 Replies

2. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

3. Shell Programming and Scripting

permissions

My /tmp is set with the following permissions (777) and a 't' at the end. My umask is set to 022. When I create a directory under /tmp (tmp/xx) it gets created as 755 as expected. Yet when I create a file within that directory (/tmp/xx/yy) the permissions are not 755 they are 644. ... (1 Reply)
Discussion started by: BeefStu
1 Replies

4. HP-UX

To give the "unzip" permissions & "create" file permissions

Hi, I am a Unix Admin. I have to give the permissions to a user for creating new file in a directory in HP-Ux 11.11 system since he cannot able to create a new file in the directory. Thanks in advance. Mike (3 Replies)
Discussion started by: Mike1234
3 Replies

5. Programming

reading reading data from webpage

hi iam reading data from web page using request socket and curl socket. now my problem is some the web page containg data as a image so how can i read the data from a image. thank,inadvance. sree (3 Replies)
Discussion started by: phani_sree
3 Replies

6. HP-UX

Permissions

Hey, We've got quite a strange problem on our hands here. We are running an HP 9000/800 B.11.00. I've just created a new group in /etc/group which i called, let's say newgroup . Then I added 4 users to the group, namely user1, user2, user3, user4 . The command grpchk shows no strange things... (4 Replies)
Discussion started by: chrizz
4 Replies

7. UNIX for Dummies Questions & Answers

permissions

I saved a perl code in xemacs. I used an xterminal to execute it but unix said that I don't have permission. I saved the files in my home directory. How do I change the permission. This is hat unix said: -ksh: ./names.pl: cannot execute (5 Replies)
Discussion started by: lnatz
5 Replies

8. Forum Support Area for Unregistered Users & Account Problems

no permissions

I am having problems editing my profile, performing a search, etc .... Always get msg that I don't have any permissions. What do I need to do? Thanks DANNYC (1 Reply)
Discussion started by: DANNYC
1 Replies

9. UNIX for Dummies Questions & Answers

cp -p and permissions

Hi all. Her's what i want to do: -> copy a file from /tmp to /usr/local/bin, and then give this file the default owner of /usr/local/bin. My /usr/local/bin belongs to root:sys. When i detar the file mentionned, it keeps the rights it was created with. How can i achieve what i want to do? A cp... (1 Reply)
Discussion started by: penguin-friend
1 Replies

10. Shell Programming and Scripting

permissions

Can someone pleas tell me if there is something funny when it comes to unix permissions and PHP. When php creates a file in unix the owner is nobody...does this raise any issues, and if it does could someone please tell me a web site where I could read more about this. Thanks alot. John (2 Replies)
Discussion started by: jmg5
2 Replies
Login or Register to Ask a Question