LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 3,039
Blog Entries: 4

Rep: Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734
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
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 3,039
Blog Entries: 4

Rep: Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734
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
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 3,039
Blog Entries: 4

Rep: Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734
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
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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


All times are GMT -5. The time now is 04:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration