Permissions for /etc/shadow file


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Permissions for /etc/shadow file
# 1  
Old 04-30-2011
Permissions for /etc/shadow file

Hi,
What are the default file permissions for /etc/shadow file in Linux. and What is meant by open files in linux.Any body please help me.Thanks in advance.
# 2  
Old 04-30-2011
The default file permissions might be distro dependent. What does ls -l /etc/shadown tells you? On mine box:
Code:
loic@noether:~/private/math$ ls -l /etc/shadow
-rw-r----- 1 root shadow 1397 2010-11-19 17:36 /etc/shadow

Quote:
What is meant by open files in linux
In which context? I'd guess: there is at least a file descriptor attached to the process (see lsof)

HTH, Loïc
# 3  
Old 04-30-2011
/etc/shadow file is readable only by the root user because of there is security risk.for detail information you can look this page

open files is opened files,dirs,pipes,fifos,character device,file descriptor,sockets,shared libary .. in the system.
These files are opened(loaded) by a process or kernel threads or user comamnds or user shell or startup services(daemon)...
try lsof(open fıles) or fuser(opened files in ps buffer) or ps(open proces) or netstat(open sockets)

regards
ygemici
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

3. 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

4. UNIX for Dummies Questions & Answers

Shadow File

I see conflicting definitions for the shadow file. For Solaris, what are the fields please? Thanks. (3 Replies)
Discussion started by: DavidS
3 Replies

5. 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

6. 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

7. UNIX for Advanced & Expert Users

shadow file

what does 'x' in the encrypted password field in /etc/shaodw file represent? (3 Replies)
Discussion started by: jbashir
3 Replies

8. Programming

Doubt on shadow file

Hi guys, I have a doubt on shadow file ... In the Unix servers in which I am working, I cud see that the shadow file has only one permission set .. tht is read permission for only root user ... (-r--------) .... So my basic doubt here is that how this file is being written then ... only... (4 Replies)
Discussion started by: Sabari Nath S
4 Replies

9. UNIX for Dummies Questions & Answers

shadow file

Sirs, What is a shadow file,How it be usefull.For my project i have to keep the password in shawdow file also i am doing in php how can i do it. Thanks in advance, ArunKumar (3 Replies)
Discussion started by: arunkumar_mca
3 Replies

10. UNIX for Dummies Questions & Answers

Shadow file permissions

We use apaches for a web stuff and we configures apache to use the etc/shadow file for the suers passwords. The problem is when you use passwd to change passwords the password gets put in the shadow file but the permissions before the change was 644 but after the change the permissions got chage to... (1 Reply)
Discussion started by: dman110168
1 Replies
Login or Register to Ask a Question