LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-23-2003, 10:55 AM   #1
caio
LQ Newbie
 
Registered: May 2003
Distribution: Slackware 9.0
Posts: 19

Rep: Reputation: 0
Some commands doubts....


Hi...

In order do add a new user acc, I should run adduser, but what if I want to exclude some acc??

In /etc/passwd are store my pass, right?? But I have only 3 accs, and in this files there are lots of lines... Is that OK??



Tnx in advance.
Caio.
 
Old 05-23-2003, 11:17 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
In order do add a new user acc, I should run adduser, but what if I want to exclude some acc??
If you want to exclude accounts, just don't add 'em :-]
Or did you mean you want to disable an account?

In /etc/passwd are store my pass, right??
No, your account information, not the pass. That's in /etc/shadow.

But I have only 3 accs, and in this files there are lots of lines... Is that OK??
Yes, those accounts with a numerical UID/GID below 500 (2nd/3rd field) usually are users used by the system itself.
 
Old 05-23-2003, 11:35 AM   #3
caio
LQ Newbie
 
Registered: May 2003
Distribution: Slackware 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
The point is that I created an account and now I dont want it any more. So I decided to exclude it, or disable it, whatever...
How can I do it?
 
Old 05-23-2003, 12:11 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by caio
The point is that I created an account and now I dont want it any more. So I decided to exclude it, or disable it, whatever...
How can I do it?
To remove from your system:
userdel -r <username>

To edit or disable, you could use the usermod command. man usermod for more options.

Last edited by trickykid; 05-23-2003 at 12:12 PM.
 
Old 05-23-2003, 12:25 PM   #5
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
If you want to just disable the account rather than delete it, change the shell field in /etc/passwd to /bin/false. Use vipw to edit the passwd file since it checks for syntax errors, which can save you if you screw up.
 
  


Reply



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
Doubts in c rajesh_b Programming 2 06-06-2005 09:54 PM
NAT doubts vermaamitabh Linux - Networking 2 10-29-2004 09:11 AM
script doubts praveenv Linux - Newbie 1 08-14-2004 07:00 AM
Makefile doubts varala_kanth Linux - Software 0 03-25-2004 10:15 PM
Networking doubts pongsu Linux - General 2 10-02-2003 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:27 PM.

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
Open Source Consulting | Domain Registration