LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-09-2003, 03:03 PM   #1
PlatinumRik
Member
 
Registered: Feb 2003
Location: Buffalo, NY
Distribution: Novell Linux Desktop
Posts: 159

Rep: Reputation: 30
adding local users w/ only text


How do i manage my local user accounts ? add / remove / edit and so forth. thanks
 
Old 04-09-2003, 03:05 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
With adduser or useradd (man useradd)

userdel -r (man userdel)

usermod (man usermod) I think this is correct, I've never done this If not, you can manually edit in /etc/passwd

Cool
 
Old 04-09-2003, 03:08 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
highly distro dependent ;)

try adduser, userdel, ...

Code:
man - k user | grep 1 | less
should give you a fair idea of which
programs are installed on your box.


Cheers,
Tink
 
Old 04-09-2003, 03:11 PM   #4
PlatinumRik
Member
 
Registered: Feb 2003
Location: Buffalo, NY
Distribution: Novell Linux Desktop
Posts: 159

Original Poster
Rep: Reputation: 30
when editing the passwd file can you please break down?

username:x(passwd?):#(?):#(?):RealName:Home Dir:shell
 
Old 04-09-2003, 03:12 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Like is said above - it depends on your distro. You can find a list of "user" commands by typing "userTABTAB" (replacing TABTAB with 2 tabs)
 
Old 04-09-2003, 03:25 PM   #6
PlatinumRik
Member
 
Registered: Feb 2003
Location: Buffalo, NY
Distribution: Novell Linux Desktop
Posts: 159

Original Poster
Rep: Reputation: 30
I can get the man pages for the useradd but when i try to run it, it states it cannot find it :?
 
Old 04-09-2003, 03:27 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You have to be root, also:
whereis useradd

And run with full path.

As for editing /etc/passwd directly, you should have some entries to use as examples.

Cool
 
Old 04-09-2003, 03:29 PM   #8
PlatinumRik
Member
 
Registered: Feb 2003
Location: Buffalo, NY
Distribution: Novell Linux Desktop
Posts: 159

Original Poster
Rep: Reputation: 30
how can i make that into a global cammand?
 
Old 04-09-2003, 03:51 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by PlatinumRik
how can i make that into a global cammand?
You shouldn't, since only root has write permissions
to passwd and shadow, anyway ... what point
is it to run the command as non-root? ;)

Quote:
username:x(passwd?):#(?):#(?):RealName:Home Dir:shell
username:password(x implies a shadow):userid:groupid:realname(and other info as given by user-add, like phone, room, ...):home:default-shell
Cheers,
Tink
 
Old 04-09-2003, 03:53 PM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by PlatinumRik
how can i make that into a global cammand?
I don't think you want to give everyone with an account access to that command. Setup sudo for particular groups or users with access to that command.

man sudo
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Local Users mslatter Linux - General 6 10-19-2005 09:20 AM
how to authenticate external users but bypass prompt on local LAN users? taiwf Linux - Security 5 07-13-2005 09:01 AM
Adding local folders to APT-GET mickboda Linux - Software 3 05-23-2005 04:05 AM
Preventing local users from "text flooding" a terminal (DoS attack)... khermans Linux - Security 2 09-24-2003 07:56 AM
Adding a local printer harperonline Linux - Hardware 3 08-12-2003 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:43 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