Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Show User Attributes On Command Line?
cagey cretin
post Dec 30 2003, 11:31 PM
Post #1


./configure
***

Group: Members
Posts: 96
Joined: 9-September 03
Member No.: 1,413



Anyone know if there is a single line that will show the users attributes in the shell (bash)?

CC
Go to the top of the page
 
+Quote Post
hughesjr
post Dec 31 2003, 08:55 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



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


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
cagey cretin
post Dec 31 2003, 11:48 AM
Post #3


./configure
***

Group: Members
Posts: 96
Joined: 9-September 03
Member No.: 1,413



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 01:57 PM