LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-08-2013, 02:39 PM   #1
Rogue45
Member
 
Registered: Jun 2012
Posts: 47

Rep: Reputation: Disabled
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?
 
Old 01-08-2013, 05:06 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
diff gshadow gshadow~
 
Old 01-08-2013, 05:51 PM   #3
Rogue45
Member
 
Registered: Jun 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-08-2013, 09:19 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
vi makes those when you edit with that editor.
I think
Code:
set nobackup
in .vimrc will disable it.
 
Old 01-09-2013, 05:16 PM   #5
Rogue45
Member
 
Registered: Jun 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-09-2013, 07:14 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
...The gshadow- file is there when i first install the OS...
What OS is that?
 
Old 01-09-2013, 07:41 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

Last edited by jschiwal; 01-09-2013 at 07:42 PM.
 
Old 02-15-2013, 11:33 AM   #8
Rogue45
Member
 
Registered: Jun 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
I found the answer to this out myself and figured i'd post it. Anytime you edit with gedit it saves an additional file of your pre-edited file.
 
  


Reply

Tags
permissions, redhat


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use Fedora 11 passwd, shadow, gshadow, group files in Fedora 12?? aimGuy Linux - Newbie 2 04-28-2010 06:05 PM
passwd.new, shadow.new, group.new and gshadow.new after upgrade to slackware 12.1 rhermsen Slackware 6 11-08-2008 04:59 PM
/etc/gshadow sulekha Ubuntu 1 11-06-2008 09:31 PM
gshadow permission denied on Red Hat 3 mishkind Red Hat 0 11-18-2007 10:43 AM
Create new shadow and gshadow files-HOW? MichaelP Linux - Newbie 1 03-16-2005 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration