English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

8 answers

If you are just using standard authentication:

/etc/passwd
/etc/shadow

You may also be set up to use Kerbos which is a centralized form of authentication. Sort of like Active Directory or LDAP. There are several other solutions as well.

2007-07-10 02:07:28 · answer #1 · answered by Dilbert's Desk 5 · 0 0

/etc/passwd contains the user name and (on base level security systems) the encrypted password.

On not base level secure systems the password is held in another file / directory structure. The location of this depends on the OS you are talking about and what level of security you are running. It may be in files under /etc/tcb or /usr/tcb or other places... have a look at the man pages for the OS you are working with.

Most Linux systems now run not-base-level security by default.

/etc/passwd is world readable and the password is encrypted. The secure password file structure is usually root-readable only. Plus the passwords are encrypted.

2007-07-10 02:09:41 · answer #2 · answered by bambamitsdead 6 · 0 0

On a small scale it isn't necessary but it will turn into a bad habit when you work as a sys admin at the enterprise level. Like somebody said if you run a delete command as root and it was the wrong file then there's a big headache there. When you're working on only one system it's very easy to focus and not make mistakes. When you're an admin you have your support team IM flashing for escalations, multiple root shells open to various servers, and managers pressuring side projects. If it's annoying to prepend your commands with sudo create an alias for it.

2016-05-22 05:12:51 · answer #3 · answered by Anonymous · 0 0

The username and password are checked against an encrypted file in /etc/passwd for ubuntu, it may vary in other distros.

2007-07-10 02:11:58 · answer #4 · answered by Anonymous · 0 0

each user as a user folder and each user folder is checked against the password and user name,, one thing about linux is if you forget your password you will never get into your account...

now if your installing Linux onto your system you will need to open two accounts, a supper user account, and a user account, the supper user account is for the administrator and the user account is what your will normally sign into.

As a user you will not be able to install anything or alter anything within the system, you will be able to alter things within your user account,

if you would like to know more then PM me I will guide you to the tutorials on how to install Linux, and plenty of other tutorials....

2007-07-10 02:24:37 · answer #5 · answered by Carling 7 · 0 0

It depends on what authentication mechanism is used.

The basic answer though, is /etc/passwd

2007-07-10 02:08:07 · answer #6 · answered by SynfulVisions 4 · 0 0

start by checking the output of:
strings /bin/login | grep "^/"

or, better, find the source files of the package that "/bin/login" belongs to and study them!

2007-07-10 02:14:03 · answer #7 · answered by Anonymous · 0 0

you realize that file is encrypted right?

and, it depends on your distro i think

2007-07-10 02:01:33 · answer #8 · answered by andrew5544 4 · 0 0

fedest.com, questions and answers