cagey cretin
Dec 30 2003, 11:31 PM
Anyone know if there is a single line that will show the users attributes in the shell (bash)?
CC
hughesjr
Dec 31 2003, 08:55 AM
What attributes do you mean?
whoami tells you who you are currently logged in as...
cat /etc/passwd | grep username tells you all the login info about a user (substitute the user's login for username)....
cat /etc/group | grep username tells you all the groups that a user is in....
cagey cretin
Dec 31 2003, 11:48 AM
Happy New Year!
I ask because when I used a script to set up my users, I wasn't able to access with FTP remotely. When I used the GUI, I was able to access remotely. I know that there was a difference between the two ways they were set up, but for the life of me I don't know what. I was hoping that I could show username, home_dir, passwd, -g -G etc somehow and compare the two ways to see what defaults (for lack ofa better word) were applied to the one set up via script.
CC