Permissions output

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Permissions output
# 1  
Old 12-16-2007
Permissions output

Hi there,

One question on displaying the output for permissions.
Ok, when I put ls -l filename
I get something like this:
-rw-r--r-- 1 users 359 Dec 16 13:19 filename

How do I change the output to become like this?

Should I use SHIFT and WHILE loop command to do this? I am really stuck on displaying the output. Can someone help me?
# 2  
Old 12-16-2007
It is a kiss ( Keep it simple and stupid )..You can write your own wrapper script. But it is not worthy.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Help regarding permissions

Hi I have following directory : => ls -ltr total 0 drwxrwxr-x 2 wmdwhadm dba 8192 Apr 02 23:22 in-process/ => id wmdwhadm uid=210(wmdwhadm) gid=1(staff) groups=251(cogadmin) My first question is although directory belong to dba group, then why "id wmdwhadm" command doesn't... (3 Replies)
Discussion started by: ankit_203
3 Replies

2. UNIX for Dummies Questions & Answers

permissions ?

chmod 754 file3 would yield the same as: chmod u=rwx, g=rx, o=r file3 chmod u+rwx, g=rx, o=r file3 the first one is what i put the second is what was correct. i guess i'm asking what is the difference with "+" and "=" and how do you know when to use either. (4 Replies)
Discussion started by: austing5
4 Replies

3. 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

4. Shell Programming and Scripting


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

5. Shell Programming and Scripting

Print permissions for a file in output

hi i m trying to print the permissions for a file in output echo name read name touch name.txt permission=$((ls -l $name.txt)) echo permission please suggest where i went wrong? (2 Replies)
Discussion started by: angel12345
2 Replies

6. 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

7. UNIX for Dummies Questions & Answers


Hi everyone, I'm looking for some information concerning Unix permissions. I am new to Unix and am doing research for a graduate class. Given the permissions below, can anyone give me five unique exploits that would be available to a hacker/cracker given this configuaration? -rw-rw-rw- 1... (1 Reply)
Discussion started by: skeeter
1 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


with permission set to d-wx--x--x directoryname Why can't I do a long-listing on this directory? Is read access necessary? (1 Reply)
Discussion started by: mma_buc_98
1 Replies

10. Shell Programming and Scripting


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