[SOLVED] how is gshadow- different than gshadow file? No reference in man page
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how is gshadow- different than gshadow file? No reference in man page
I wanted to double check default permissions on my /etc/gshadow file. When i ls -l | grep gshadow it gives me two listings.
----------. 1 root root 563 Jan 2 17:19 gshadow
-rw-------. 1 root root 563 Jan 2 17:19 gshadow-
What is the difference between the two files? I have done due diligence googling but am finding nothing. Why would one be set to 000 and the other 600?
I'm not questioning the contents. I can see those. I want to know why there are two files. I can read the purpose of gshadow in the man page but why is there a gshadow- file. No documentation i find says anything about a gshadow- file. There are also similar corresponding "-" files for the group, passwd, and shadow file.
Hmm. The gshadow- file is there when i first install the OS before i edit or open it. That is what i was originally thinking though. Sort of similiar to when you open a file in windows it creates file~ temporarily. Difference is gshadow- never goes away. Still don't think i have a definite answer.
Your /etc/gshadow file has no permissions enabled. The /etc/gshadow- files seems to be a working replacement. Maybe for a PAM module that adds audit info, or failtoban,,etc.
If your distro uses RPM, try "rpm -qf /etc/gshadow-" to see what package installed it. Also try using lsof to see if any program has it open.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.