ls and chmod numeric permissions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ls and chmod numeric permissions
# 1  
Old 12-29-2005
ls and chmod numeric permissions

Hello,

When I do a "ls -l" I can see my directories have
drwxr-xr-xr. I am more used to the chmod numerical syntax like 755. Is there an easy way to list out the numerical permissions rather than rwx etc.
# 2  
Old 12-29-2005
I dont think that there is an option like that. But this should be just as simple to follow.
Code:
rwx 
421

- Just add the numbers up and you get your numeric permissions.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Get a Numeric Permissions List for a Directory Tree???

Greetings! Being a curious sort, I'm trying to get a numerical representation of a directory tree's permissions; in similar manner to the commonly-called ls -l command. On that note, here's what cobbled out through the "digital interface" this afternoon:find ./directory/ -name '*' -exec stat... (2 Replies)
Discussion started by: LinQ
2 Replies

2. UNIX for Dummies Questions & Answers

Access permissions chmod 606

Hi All I am running Ubuntu linux flavour. I need provide multiple users belonging to the same group access to a dir where they can write files but are not supposed to remove or rename files. users outside the group should be able to read and write to the dir. i have set the permission of... (7 Replies)
Discussion started by: Simza
7 Replies

3. UNIX and Linux Applications

What is the difference between chmod in solaris and chmod in Linux?

i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies

4. UNIX for Dummies Questions & Answers

changing permissions on a 444 file (ie chmod 444)

if I have a file set to permisions 444 (r-- r-- r--) should anyone other than the owner and root be able to change these permissions or delete the file. Apologies if this is a no-brainer but I cant test it myself and someone in our organisation is playin around with files they shouldnt be (1 Reply)
Discussion started by: ajcannon
1 Replies

5. Shell Programming and Scripting

Perl code to differentiate numeric and non-numeric input

Hi All, Is there any code in Perl which can differentiate between numeric and non-numeric input? (11 Replies)
Discussion started by: Raynon
11 Replies

6. UNIX for Dummies Questions & Answers

Unix chmod permissions

Hello all, Trying to do the following. 1. Run Windows installer from a unix server. 2. Let user run the shortcut but not allow access to the folder where the exe itself is running. What I have done so far: 1. Copied the application to the server and placed in a folder called "data".... (2 Replies)
Discussion started by: whiterabbit
2 Replies

7. UNIX for Advanced & Expert Users

Numeric CHMOD for .js files

Hello! At present, my .js files are also within the public_html directory. Anyone is able to type the name of these files in their browser address bar and then be presented the javascript (or text) code. What numeric CHMOD should be applied to these, which: Permit the world and group to... (3 Replies)
Discussion started by: Texan
3 Replies

8. UNIX for Advanced & Expert Users

chmod (permissions) * not working on remote server

Hi gurus ! I am developing a FTP script which will copy all the files from one server to another server and then I need to use CHMOD 755 * to set permissions of all the files just copied to the remote server. mput * chmod 755 * CHMOD gives me an error CHMOD works fine If I specify... (3 Replies)
Discussion started by: sdlayeeq
3 Replies

9. UNIX for Dummies Questions & Answers

chmod permissions

Is there any way that you can set it up so when you create a file it has the chmod permissions of u+x? I am not a root user on the system (1 Reply)
Discussion started by: himurak
1 Replies

10. UNIX for Dummies Questions & Answers

directory permissions and CHMOD

I am working on a new UNIX box that has been delivered to us, and noticed that the /home directory has 555 permissions on it (dr-xr-xr-x). Any attempt to create write permissions fails on this directory (such as chmod 777), responding only with a message; chmod: WARNING: can't change home ... (3 Replies)
Discussion started by: ncarmstrong
3 Replies
Login or Register to Ask a Question