09-23-2008
/etc/shadow 2nd column with !!
Hi All,
I have this /etc/shadow below:
dbus:!!:14063:0:99999:7:::
vcsa:!!:14063:0:99999:7:::
rpm:!!:14063:0:99999:7:::
haldaemon:!!:14063:0:99999:7:::
netdump:!!:14063:0:99999:7:::
nscd:!!:14063:0:99999:7:::
sshd:!!:14063:0:99999:7:::
rpc:!!:14063:0:99999:7:::
mailnull:!!:14063:0:99999:7:::
smmsp:!!:14063:0:99999:7:::
rpcuser:!!:14063:0:99999:7:::
nfsnobody:!!:14063:0:99999:7:::
pcap:!!:14063:0:99999:7:::
apache:!!:14063:0:99999:7:::
What does !! mean on the second column? Is it password or can the userid login or what?
Thanks in advance.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm racking my brain on this one! :(
I have a list like this:
Paul 20
Paul 25
Paul 30
Frank 10
Julie 15
Julie 13
etc, etc...
I've been trying to figure out a way to have the output display the name in the first column ONCE and add the numbers in the second column and display that... (2 Replies)
Discussion started by: sdlennon
2 Replies
2. Shell Programming and Scripting
Hi friends,
My file is like:
Second file is :
I need to print the rows present in file one, but in order present in second file....I used
while read gh;do
awk ' $1=="' $gh'" {print >> FILENAME"output"} ' cat listoffirstfile
done < secondfile
but the output I am... (14 Replies)
Discussion started by: CAch
14 Replies
3. Shell Programming and Scripting
I need to take one column of data and put it into the following format:
1st line,2nd line
3rd line,4th line
5th line,6th line
...
Thanks! (6 Replies)
Discussion started by: batcho
6 Replies
4. Shell Programming and Scripting
Dear All,
I have input file like this.
input.txt
CE2_12-15 3950.00 589221.0 9849709.0 768.0 CE2_12_2012
CE2_12-15 3949.00 589199.0 9849721.0 768.0 CE2_12_2012
CE2_12-15 3948.00 589178.0 9849734.0 768.0 CE2_12_2012
CE2_12-52 1157.00 ... (3 Replies)
Discussion started by: attila
3 Replies
5. Shell Programming and Scripting
Dear All,
I have data like this,
input.txt
A 0B 1828
C 100D 1666,C 200D 1727,C 300D 1783,
A 0B 1786
C 200D 1727,C 100D 1666,C 300D 1783,
C 400D 1812,C 600D 1869,C 500D 1841,
C 400D 1812,C 500D 1841,C 600D 1869,
A 0B 1349
C 200D 1727,C 300D 1783,C 100D... (1 Reply)
Discussion started by: attila
1 Replies
6. Shell Programming and Scripting
Hi
I have 5 columns like this
a b c d e
f g h i j
k l m n o
From 2nd column till the 5th column of every record, I would like to transpose them as rows, so my output file contains only one row
a
b
c
d
e
f
g
h
i
j (9 Replies)
Discussion started by: jacobs.smith
9 Replies
7. Shell Programming and Scripting
Both codes not working for me.
whois nba.com| sed -n '/Registry Registrant ID:/,/Registrant
whois ymas.com| sed -n '/Registry Registrant ID:/,/Registrant
whois ymas.com.pt| sed -n '/Registry Registrant ID:/,/Registrant
whois ymas.com.pt| sed -n '/Registry Admin ID:/,/Admin Email:/p' ... (5 Replies)
Discussion started by: kenshinhimura
5 Replies
8. Linux
I have file that looks like this,
DIP-17571N|refseq:NP_651151 DIP-17460N|refseq:NP_511165|uniprotkb:P45890 DIP-17571N|refseq:NP_651151
DIP-19241N|refseq:NP_524261 DIP-19241N|refseq:NP_524261 DIP-17151N|refseq:NP_524316|uniprotkb:O16797
DIP-19588N|refseq:NP_731165 ... (2 Replies)
Discussion started by: Syeda Sumayya
2 Replies
9. Shell Programming and Scripting
#cat data.txt
file1 folder1
file2 thisforfile2
file3 thisfolderforfile3
lata4 folder4
step 1: create the folder first in column 2
for i in `awk '{print $2}' data.txt`
do
mkdir /home/data/$i
done
step 2: locate the files in column1 and stored them into a file
for i in... (17 Replies)
Discussion started by: kenshinhimura
17 Replies
10. UNIX for Beginners Questions & Answers
hi
I have 2 file with more than 10 columns for both
1st file
apple,0,0,0......
orange,1,2,3.....
mango,2,4,5.....
2nd file
apple,2,3,4,5,6,7...
orange,2,3,4,5,6,8...
watermerlon,2,3,4,5,6,abc...
mango,5,6,7,4,6,def.... (1 Reply)
Discussion started by: tententen
1 Replies
pbput(1) bikeshed pbput(1)
NAME
pbput - compress and encode arbitrary files to pastebin.com
pbputs - compress, encrypt, encode arbitrary files to pastebin.com
pbget - decode and decompress arbitrary files from pastebin.com
SYNOPSIS
pbput [FILENAME]
cat foo | pbput
pbputs [FILENAME] [GPG_USER]
cat foo | pbputs [GPG_USER]
pbget URL [DIRECTORY]
DESCRIPTION
pbput is a program that can upload text files, binary files or entire directory structures to a pastebin, such as pastebin.com.
pbget is a program that be used to retrieve content uploaded to a pastebin by pbput.
pbputs operates exactly like pbput, except it encrypts the data. An optional GPG_USER argument is allowed, which will sign and encrypt the
data to the target user in one's keyring (which could be oneself!). Otherwise, the user is prompted for a symmetric passphrase for
encrypting the content with gpg(1) before uploading. pbget will automatically prompt the receiving user for the pre-shared passphrase.
pbput and pbputs can take its input either on STDIN, or as a FILENAME argument.
- If STDIN is used, then the receiving user's pbget will simply paste the input on STDOUT.
- If a FILENAME or DIRECTORY is passed as an argument, then it is first archived using tar(1) to preserve the file and directory
attributes
pbget takes a URL as its first, mandatory argument. Optionally, it takes a DIRECTORY as a second parameter. If the incoming data is in
fact a file or file structure in a tar(1) archive, then that data will be extracted in the specified DIRECTORY. If no DIRECTORY is speci-
fied, then a temporary directory is created using mktemp(1).
In any case the uploaded/downloaded data is optionally tar(1) archived, always lzma(1) compressed, optionally gpg(1) encrypted, and always
base64(1) encoded. http://pastebin.com is used by default.
EXAMPLES
$ pbput /sbin/init
http://pastebin.com/BstNzasK
$ pbget http://pastebin.com/BstNzasK
sbin/init
INFO: Output is in [/tmp/pbget.bG67DwY6Zl]
$ cat /etc/lsb-release | pbput
http://pastebin.com/p43gJv6Z
$ pbget http://pastebin.com/p43gJv6Z
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
$ pbputs /etc/shadow
Enter passphrase:
http://pastebin.com/t2ZaCYr3
$ pbget http://pastebin.com/t2ZaCYr3
Enter passphrase:
root:09cc6d2d9d63371a425076e217f77698:15096:0:99999:7:::
daemon:*:15089:0:99999:7:::
bin:*:15089:0:99999:7:::
sys:*:15089:0:99999:7:::
....
SEE ALSO
pastebinit(1), lzma(1), base64(1), tar(1), gpg(1), mktemp(1)
AUTHOR
This manpage and the utility was written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu systems (but may be used by others). Permis-
sion is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or later pub-
lished by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at
http://www.gnu.org/licenses/gpl.txt.
bikeshed 6 Oct 2010 pbput(1)