Sponsored Content
Full Discussion: '!!' in /etc/shadow
Top Forums UNIX for Dummies Questions & Answers '!!' in /etc/shadow Post 302477291 by solaris_user on Saturday 4th of December 2010 04:43:06 AM
Old 12-04-2010
Metacharacters

Metacharacter
Description


Quote:
Wikipedia says

UNIX interprets a space as a separator not as a character.
*
A wild card character that matches any group of characters of any length, allowing a user to specify a large group of items with a short string. For example, to specify all the files that start with 'abc', you use abc*.
?
A wild card character that matches any single character. Thus ls ??? lists files in the current directory whose names are only three characters long, while ls ???.* lists those files with a three letter main name and any extension.
[..]
A set of characters that can be matched. Thus ls [a-c]*.??? lists all files that begin with a, b, or c and have a three letter extension and lpr [ad]* prints all files that begin with a or d.
$
Indicates that the following text is the name of a shell (environment) variable whose value is to be used.
|
Separates commands to form a pipe (see redirection in "Intermediate Use Of The UNIX Operating System").
<
Redirect the standard input (see redirection in "Intermediate Use Of The UNIX Operating System").
>
Redirect the standard output (see redirection in "Intermediate Use Of The UNIX Operating System") to replace current contents.
>>
Redirect the standard output (see redirection in "Intermediate Use Of The UNIX Operating System") to append to current contents.
>&
Redirect the standard output and standard error (see redirection in "Intermediate Use Of The UNIX Operating System") to replace current contents.
>>&
Redirect the standard output an standard error (see redirection in "Intermediate Use Of The UNIX Operating System") to append to current contents.
%
Introduces a job name (see multitasking in "Intermediate Use Of The UNIX Operating System").
&
Place a process into the background (see multitasking in "Intermediate Use Of The UNIX Operating System").
()
Encloses a sequence of commands or pipes to be executed as a single command.
!
Precedes a history substitution (see "man history")
;
Separates sequences of commands (or pipes) that are on one line.
&&
Separates two sequences of commands or pipes the second of which is executed only if the first succeeds.
||
Separates two sequences of commands or pipes the second of which is executed only if the first fails.
\
Used to "quote" the following metacharacter so it is treated as a plain character, as in \*.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Shadow

Can some one explain to me how to disable the Shadow file or disconnect it from the passwd file. I am trying to configure a UNIX SCO box to use NIS and it continues to look at its own Shadow file. Thanks (5 Replies)
Discussion started by: mokie44
5 Replies

2. Programming

Shadow Passwords

I'm writing a 'C' program on various systems (HP-UX, Solaris, AIX, NCR) which needs to interact with a user's password. Some of my systems are using the shadow password and some are not. It is possible for some of my systems to have /etc/shadow, even though the box is not using the file (I know,... (4 Replies)
Discussion started by: chrisc@nwark.ne
4 Replies

3. Solaris

*LK* in /etc/shadow file

my etc/shadow file showing *LK* for a particular user.. can u tell me under which circumstances a user is locked (5 Replies)
Discussion started by: vikashtulsiyan
5 Replies

4. UNIX for Advanced & Expert Users

/etc/shadow file....

Does anyone know what "!!" represents in the password field of the /etc/shadow file? :confused: (6 Replies)
Discussion started by: avcert1998
6 Replies

5. UNIX for Dummies Questions & Answers

etc/shadow without hash

Hi, I am new to shell programming and trying to write a command that would show the etc/shadow file but without the hashes. So, something like this: root: <HASH PASSWORD FOUND BUT OBFUSCATED> daemon: NP bin: NP sys: NP If there is a... (2 Replies)
Discussion started by: hellomms
2 Replies

6. UNIX for Dummies Questions & Answers

shadow entry

In /etc/shadow ..we have all the user entries ..? Like when ever an user is created a corresponding entry is created in /etc/shadow...? (2 Replies)
Discussion started by: rachna
2 Replies

7. Shell Programming and Scripting

Shadow file

Hi, In shadow file smithj:Ep6mckrOLChF.:10063:0:99999:7::: 3rd Field 10063 indicates the number of days (since January 1, 1970) since the password was last changed. I want to get the result with script the date on which the password was last changed in YYYY-MM-DD format. can... (8 Replies)
Discussion started by: pinnacle
8 Replies

8. UNIX for Dummies Questions & Answers

Need your help on permission of /etc/shadow!

Dear all, I need all of you to clarify about file permission and SUID, SGID as below: Command: $ ls -la /etc/passwd -r--r--r-- 1 root root 1914 2011-04-15 11:22 /etc/passwd # I've changed permission of this file $ ls -la /etc/shadow -r--r----- 1 root shadow 1397 2011-08-01 15:53... (3 Replies)
Discussion started by: all4cfa
3 Replies

9. UNIX for Dummies Questions & Answers

Shadow file help

As a part of linux hardening In shadow file all Application accounts which are not locked must contain only an asterisk “*” in the Passwd field. But how would i do it by using command? Is there any way other than modifying shadow file to accomplish this task? (3 Replies)
Discussion started by: pinga123
3 Replies

10. UNIX for Advanced & Expert Users

Need a help with /etc/shadow

Hi, I wanna see the content of the file /etc/shadow.. But i don't have the permission and also the root permission. Still is it possible to view it??? Any tricks?? (5 Replies)
Discussion started by: Adhi
5 Replies
All times are GMT -4. The time now is 04:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy