Help - Search - Members - Calendar
Full Version: Show User Attributes On Command Line?
Linuxhelp > Support > Technical Support
cagey cretin
Anyone know if there is a single line that will show the users attributes in the shell (bash)?

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

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.