Linux Unleashed, Third Edition:Users and Logins
... necessary in the / etc/ passwd file. Both versions let you exit at any time to avoid changing the / etc/ passwd file. The automated scripts also tend to ask for an initial password, which you can set to anything ... an automated script that doesnt clean up directories and files) is as follows: 1. Remove the users entry from / etc/ passwd and / etc ...
http://www.hackemate.com.ar/textos/Linux/12%20%20Ebooks/Linux%20Unleashed,%20Third%20Edition/ch35/629-631.html
-
6527 bytes
-
4/7/2005
-
text/html
Cache
Hits:
1
Rating:

0
/10 Votes:
0
Comments:
0
Report this site
|
Linux Unleashed, Third Edition:Users and Logins
... must modify the / etc/ passwd file when you are logged in as root . Warning: Before making changes to your / etc/ passwd file, make a copy of it! If you corrupt the / etc/ passwd file you will not be able to log in, even as root , and your system is effectively useless except ... is set up). Many versions of Linux enable users to change their login shell with the commands chsh or passwd ...
http://www.hackemate.com.ar/textos/Linux/12%20%20Ebooks/Linux%20Unleashed,%20Third%20Edition/ch35/626-629.html
-
8511 bytes
-
4/7/2005
-
text/html
Cache
Hits:
0
Rating:

0
/10 Votes:
0
Comments:
0
Report this site
|
Encrypted Samba password file for clients
... file, use the following commands: [root@deep ] /# passwd smbclient Changing password for user smbclient New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully Once we have added all Samba clients in our / etc/ passwd file on the Linux server, we can now generate the smbpasswd file from the / etc/ passwd file. To generate smbpasswd file from the / etc/ passwd file, use the following commands: [root@deep ] /# cat / etc/ passwd | mksmbpasswd.sh > / etc ...
http://www.faqs.org/docs/securing/chap29sec286.html
-
6931 bytes
-
7/29/2003
-
text/html
Cache
Hits:
0
Rating:

0
/10 Votes:
0
Comments:
0
Report this site
|
Redirecting Input and Output
... file is given on the command line. EXAMPLE: To see the first ten lines of the / etc/ passwd file, the command: head / etc/ passwd will work just the same as the command: head < / etc/ passwd Redirecting output Using the "greater-than" sign with a file name like this: > file2 causes the shell to ... of from the keyboard. EXAMPLE: Use standard input redirection to send the contents of the file / etc/ ...
http://snap.nlc.dcccd.edu/learn/idaho/io.html
-
4135 bytes
-
7/29/2000
-
text/html
Cache
Hits:
0
Rating:

0
/10 Votes:
0
Comments:
0
Report this site
|
Linux Unleashed, Third Edition:Users and Logins
... users and accounts makes tracking activities much easier. All the information about user accounts is kept in the file / etc/ passwd . The / etc/ passwd file should be owned only by root and have the group ID set to zero (usually root or system ... Linux Unleashed, Third Edition:Users and Logins --> Previous Table of Contents Next User Accounts: / etc/ passwd Even if you are the only user on your Linux system, you should know about user accounts and managing users. This ...
http://www.hackemate.com.ar/textos/Linux/12%20%20Ebooks/Linux%20Unleashed,%20Third%20Edition/ch35/621-623.html
-
7185 bytes
-
4/7/2005
-
text/html
Cache
Hits:
0
Rating:

0
/10 Votes:
0
Comments:
0
Report this site
|
44_Formatting_Text-awk
... Kurs Themen -Text formatieren -19 November 2003 Michel Bisson
44 - Text formating with awk
Syntax:
awk -FFieldSeperator /SearchPatern/ {command} File
z.B. awk '/ftp/ {print $0}' / etc/services
Exercises:
awk:
less / etc/ passwd
awk -F: '{print $1}' / etc/ passwd
awk -F: '{print $1; print $3; print $5}' / etc/ passwd
awk -F: '{print $1, $3, $5}' / etc/ passwd
awk -F: '{print $1, "-", $3, "-", $5}' / etc/ passwd
awk -F: '{printf ("%-10s %-10d %20s\n", $1, $3, $5)}' /
etc/ passwd
awk -F: '{if ($3 >= 500) printf ("%-10s %-10d %20s\n", $1, $3,
$5)}' / etc/ passwd
awk -F: '{if ($3 >= 500 && $3 < 1000) printf ("%-10s ...
http://linuxint.net/DOCS/Linux_Docs/PDF/44_Formatting_Text-awk.pdf
-
17903 bytes
-
11/19/2003
-
application/pdf
Cache
Hits:
3
Rating:

0
/10 Votes:
0
Comments:
0
Report this site
|
3
... Using the switches -c -w -l will display the number of
characters, words and lines respectively.
bash$ wc / etc/ passwd
19 20 697 / etc/ passwd
bash$ wc -c / etc/ passwd
697 / etc/ passwd
bash$ wc -w / etc/ passwd
20 / etc/ passwd
bash$ wc -l / etc/ passwd
19 / etc/ passwd
For the following exercises create a file called phone.book that contains the
following
george!2334234!55 Aim ... by a :
character. Use the cat command to view the contents of the file.
♣ sort / etc ...
http://homes.dsi.unimi.it/~santini/FTP/dida/linux/2002/chpdf/3.pdf
-
77435 bytes
-
7/25/2003
-
application/pdf
Cache
Hits:
0
Rating:

0
/10 Votes:
0
Comments:
0
Report this site
|
Design
... agetty(8) manpage explains how to display information like tty line and baud rate using escape codes. 7.2.3.3. / etc/ passwd The format of / etc/ passwd can be obtained by reading the passwd(5) manpage. We can easily create a user account by adding a line like "root::0:0:superuser:/root:/bin/sh ... the login program. The login program asks for a password and verifies the credentials using / etc/ passwd ...
http://www.faqs.org/docs/pocket_linux/x1147.html
-
10000 bytes
-
6/1/2003
-
text/html
Cache
Hits:
1
Rating:

0
/10 Votes:
0
Comments:
0
Report this site
|
[Chapter 17] 17.5 Variable-Length ( Text) Databases
... s a way to change everyone's login shell to /bin/sh by editing the password file: @ARGV = ("/ etc/ passwd"); # prime the diamond operator $^I = ".bak"; # write / etc/ passwd.bak for safety while (<>) { # main loop, once for each line of / etc/ passwd s#:[^:]*$#:/bin/sh#; # change the shell to /bin/sh print; # send output to ARGVOUT: the new /etc ... program can be generated entirely with a few command-line arguments, as in: perl -p -i.bak -e 's#:[^:]*$#:/bin/sh#' / ...
http://asun.ifmo.ru/docs/OreillyBookshelffull/perl/learn/ch17_05.htm
-
9726 bytes
-
3/20/2001
-
text/html
Cache
Hits:
0
Rating:

0
/10 Votes:
0
Comments:
0
Report this site
|
[Chapter 3] 3.2 Passwords
... and handles passwords on most systems and how you can select a good password. 3.2.1 The / etc/ passwd File UNIX uses the / etc/ passwd file to keep track of every user on the system. The / etc/ passwd file contains the username, real name, identification information, and basic account information for each user. Each line in ... Because there are so many different ways to access the information that has traditionally been stored in the / ...
http://asun.ifmo.ru/docs/OreillyBookshelffull/networking/puis/ch03_02.htm
-
23439 bytes
-
3/20/2001
-
text/html
Cache
Hits:
0
Rating:

0
/10 Votes:
0
Comments:
0
Report this site
|