LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2009, 10:24 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,676

Rep: Reputation: 47
adding description to user account


I did an adduser to create a new account, but i forgot to add a description to the account, so it just looks like this when i look at the passwd file. how can i go back and add one? all my other accounts have descriptions after the two numbers.

testuser:x:512:512::/home/testuser:/bin/bash
 
Old 08-20-2009, 10:28 AM   #2
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,298

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by rjo98 View Post
I did an adduser to create a new account, but i forgot to add a description to the account, so it just looks like this when i look at the passwd file. how can i go back and add one? all my other accounts have descriptions after the two numbers.

testuser:x:512:512::/home/testuser:/bin/bash


Code:
usermod -c "your description" testuser
where c = comment
 
Old 08-20-2009, 10:30 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,676

Original Poster
Rep: Reputation: 47
thanks!!
 
Old 08-20-2009, 10:35 AM   #4
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,676

Original Poster
Rep: Reputation: 47
when i do that i get a command not found error. i even switched to usr/sbin then ran it.
 
Old 08-20-2009, 07:24 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,295

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
1. did you login as root to do that?
2. you can 'su - user' and use the chfn cmd http://linux.die.net/man/1/chfn
3. Personally, for a one-off I'd just edit the /etc/passwd file directly in vi/vim
 
Old 08-21-2009, 08:00 AM   #6
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,676

Original Poster
Rep: Reputation: 47
i wasn't logged in as root, but i did a su instead of just a su -. I'm staying away from vi for now because i always forget how to use it, i miss my notepad.exe in windows LOL
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Interface Description, or renameing interfaces pgb205 Linux - Networking 1 08-06-2009 03:28 AM
Prevent user account from logging in but allow su to account DejaCpp Linux - General 4 07-26-2006 11:44 AM
system account or user account??? yenonn Linux - Newbie 6 05-10-2006 07:49 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
Adding user account to root group konabumm Linux - Newbie 1 07-31-2003 03:11 PM


All times are GMT -5. The time now is 11:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration