LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-11-2005, 06:34 AM   #1
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Rep: Reputation: 15
Talking /etc/passwd, /etc/shadow, /etc/group? Educate me :)!


Hi,

Could anyone give me some information on /etc/passwd, /etc/group, and /etc/shadow?

Understanding of these seems to be a big part of FTP config, and I'm sure it'd just be good for me to know.

My main question is, what are the various colon delimited values for? Some example lines:

/etc/passwd:
ftp:x:110:110::/home/ftp:/bin/false

/etc/shadow:
james:$1$9hrko1LN$1Hf3j9fRoHQfv14Q26FBo.:12882:0:99999:7:::

/etc/group:
james:x:1000:

I'd appreciate any reply you could give !

Kind regards,
James
 
Old 06-11-2005, 08:20 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
man passwd, man group!
Basically , when you set up a new user it asks a load of questions, these are the fields for the answers. "group" holds groups and members of groups and "shadow" contains the passwords (encrypted).
You are best off just using the commands "passwd", "adduser", "useradd", "groupadd", "groupdel" and "groupmod" than trying to work out how to modify these files, you can corrupt them easily (as I have found out to my detriment!).
 
Old 06-11-2005, 09:57 AM   #3
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
http://slackbook.lizella.net/html/es...hardusers.html

Read Slackware Essentials, new ver !
All what you wanna know about manual configuration.
 
Old 06-11-2005, 01:53 PM   #4
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks!

Hi,

Thanks for the quick reply guys - this stuff should come in useful !

Kind regards,
James
 
Old 06-11-2005, 07:47 PM   #5
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Quote:
Originally posted by kornerr
http://slackbook.lizella.net/html/es...hardusers.html

Read Slackware Essentials, new ver !
All what you wanna know about manual configuration.
I didn't know about those vi commands, thanks alot!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
passwd shadow problem rblampain Linux - Distributions 2 10-04-2005 12:00 AM
It is ok if i unshadow the /etc/passwd and /etc/shadow Paxmaster Linux - Software 1 01-12-2005 10:07 PM
mismatch with /etc/passwd and /etc/shadow AngryKeebler Linux - General 1 07-23-2004 03:42 PM
Trouble after copy shadow, group and passwd to ltsp server tapanga Linux - General 1 04-19-2004 12:59 PM
/etc/passwd or /etc/shadow? tiger7007 Linux - Security 2 03-21-2004 04:41 AM

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

All times are GMT -5. The time now is 03:36 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
Open Source Consulting | Domain Registration