/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)
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)
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)
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)
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)
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)
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
LEARN ABOUT CENTOS
xdg-open
XDG-OPEN(1) xdg-open Manual XDG-OPEN(1)NAME
xdg-open - opens a file or URL in the user's preferred application
SYNOPSIS
xdg-open {file | URL}
xdg-open {--help | --manual | --version}
DESCRIPTION
xdg-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web
browser. If a file is provided the file will be opened in the preferred application for files of that type. xdg-open supports file, ftp,
http and https URLs.
xdg-open is for use inside a desktop session only. It is not recommended to use xdg-open as root.
OPTIONS --help
Show command synopsis.
--manual
Show this manual page.
--version
Show the xdg-utils version information.
EXIT CODES
An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned:
1
Error in command line syntax.
2
One of the files passed on the command line did not exist.
3
A required tool could not be found.
4
The action failed.
EXAMPLES
xdg-open 'http://www.freedesktop.org/'
Opens the freedesktop.org website in the user's default browser.
xdg-open /tmp/foobar.png
Opens the PNG image file /tmp/foobar.png in the user's default image viewing application.
AUTHORS
Kevin Krammer
Author.
Jeremy White
Author.
COPYRIGHT
Copyright (C) 2006
xdg-utils 1.0 06/10/2014 XDG-OPEN(1)