Visit Our UNIX and Linux User Community

user permissions

Thread Tools Search this Thread
Operating Systems Solaris user permissions
# 1  
Old 08-17-2009
user permissions

i want to display the usernames,usergroups user permissions and user home directory's with in a single command.and possibities are their for getting this output ..
# 2  
Old 08-17-2009
I would suggest you to be specific about your question. Could you tell us about the permissions you are talking about?

Except permission, other things can be listed by :

#cat /etc/passwd

# 3  
Old 08-17-2009
hi deepak

in /etc/passwd will not shown the users permissions will displays the given below output...i want the output along with users permissionsssssss..

pradm:x:103:10:Printer Administrator:/home1/pradm:/bin/pfsh
# 4  
Old 08-17-2009
As Deepak has said, you'll have to be more specific about what user permissions you want to view.
# 5  
Old 08-17-2009
suppose if i created user name shut.. with below command
useradd -m /export/home/shut -d shut
i want to see shut's user home directory ,shut permissions(read,write,execute),.....
but we can see the home directory in /etc/passwd...but we cannot see the permissions (r,w,x) to shut..means whether shut is having permisions to use any type of applicationssss?
# 6  
Old 08-17-2009
So you want the file permissions on the user's home dir?
ls -ld `egrep '^username\:' /etc/passwd | cut -d ':' -f 6`| awk '{ print $1 }' | head -1

# 7  
Old 08-17-2009

Previous Thread | Next Thread
Test Your Knowledge in Computers #414
Difficulty: Easy
JavaScript is a high-level, interpreted scripting language that conforms to the ECMAScript specification.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File permissions for particular user

Hi, How can we assign file permissions for a purticular user, rather than giving to whole group. Thanks. (4 Replies)
Discussion started by: karumudi7
4 Replies

2. Homework & Coursework Questions

Check the permissions user

i have some question for example: suppose we have the Public folder as follows: If user enter: -Kenshin or /home/kenshin/Public output: abc: kenshin: rw my shell:... (1 Reply)
Discussion started by: kingkner
1 Replies

3. Shell Programming and Scripting

Check the permissions linux user

i have some question for example: suppose we have the Public folder as follows: If the user enter: -Kenshin or /home/kenshin/Public output: abc: kenshin: rw my shell: echo "Enter User:" read user ... (3 Replies)
Discussion started by: kingkner
3 Replies

4. Shell Programming and Scripting

new-user permissions

Hi, i'm using a Unix machine. I login as root. when i create new users using useradd -m <user_name> their home directories will be created in /home/ directory with default permissons of 750. i.e., drwxr-x--- how can i change these default permissions..?? which file to access and what changes i... (2 Replies)
Discussion started by: sandeepyes
2 Replies

5. UNIX for Dummies Questions & Answers

How to see a user's permissions on a directory

i know about ls, I know.... but some of our shares have a long messy list of acls and it is a lot to sort through.. without a grep option, unless you have a really nice one, is there a simple way to say: show me <USER> acl permissions on <SHARE> ? (1 Reply)
Discussion started by: glev2005
1 Replies

6. UNIX for Dummies Questions & Answers

How to do i change the user permissions..

Hi everyone, There are couple of users of which i need to give 2 of the users admin rights so that they are able to run the administration commands like "zoneadm" and locale. When logged in as root i am obviously able to do that.please suggest any way by which the other 2 user's permissions... (1 Reply)
Discussion started by: sankasu
1 Replies

7. UNIX for Dummies Questions & Answers

How to find a user's file permissions

Hi. I would like to know if there is any command that could list simple file permissions (like , R , RW..etc) for a given uid/userid and on a given file/dir. (9 Replies)
Discussion started by: ram123
9 Replies

8. UNIX for Dummies Questions & Answers

user permissions question

I have an application where in a user uploads files into a directory that has a collection of image files, as well as a text file that is read by a web script later. The script imports the text file data into a database, then copies the image files to a secure location. Ideally it should remove... (1 Reply)
Discussion started by:
1 Replies

9. UNIX for Advanced & Expert Users

Changing permissions of a user

So I need to change the permissions of my user account. I can access the root account on the server, but don't know how to change the permissions of my user account. I was advised to try 'userconf' to see if I am part of a group, but I dunno how that works. ANyone who knows how to see the... (3 Replies)
Discussion started by: achink125
3 Replies

10. UNIX for Dummies Questions & Answers

view user permissions on directory

Hello, and thanks in advance- I just installled red hat and pinged my machine and got a reply. When i go to http://myIPhere from my other machine it asks for a password and username. It doesnt accepts the username and passwords I use to login to my linux box. I therefore think its a premissions... (1 Reply)
Discussion started by: 99miles
1 Replies

Featured Tech Videos