LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2006, 11:12 AM   #1
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Rep: Reputation: 30
/etc file permisions


can 1one post me what should these files' permisisons loo like:

/etc/group
/etc/gshadow
/etc/passwd
/etc/shadow

tnx

Last edited by pingvina; 02-27-2006 at 11:13 AM.
 
Old 02-27-2006, 11:29 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Code:
-rw-r--r--  1 root root 1163 Feb 22 17:35 /etc/group
-r--------  1 root root  925 Feb 22 17:35 /etc/gshadow
-rw-r--r--  1 root root 2718 Feb 22 17:35 /etc/passwd
-rw-------  1 root root 1575 Feb 22 17:35 /etc/shadow
 
Old 02-27-2006, 11:43 AM   #3
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
tnx for help - tux happy
 
Old 02-27-2006, 11:43 AM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
From a Debian (Sarge) system:
Code:
$ ls -l /etc/*shadow*
-rw-r-----  1 root shadow 576 2006-02-23 10:49 /etc/gshadow
-rw-------  1 root root   569 2006-02-23 10:49 /etc/gshadow-
-rw-r-----  1 root shadow 766 2006-02-23 10:49 /etc/shadow
-rw-------  1 root root   766 2006-02-23 10:49 /etc/shadow-
$ ls -l /etc/group
-rw-r--r--  1 root root 688 2006-02-23 10:49 /etc/group
$ ls -l /etc/passwd
-rw-r--r--  1 root root 1134 2006-02-23 10:49 /etc/passwd
 
Old 02-27-2006, 12:02 PM   #5
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
tnx haertig, i have the same...
what are these files with "-" at the end??
backup?

Last edited by pingvina; 02-27-2006 at 12:04 PM.
 
Old 02-27-2006, 12:37 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Quote:
Originally Posted by pingvina
what are these files with "-" at the end?? backup?
Apparently. I did not create them manually. Looks like Gnome's user/group management program must do this. I ran a diff on gshadow and gshadow- and found the only difference was one line. gshadow had my userid in one group while gshadow- did not. And that's the last thing I did with the user management tools - added myself to that group.
 
Old 02-27-2006, 12:42 PM   #7
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
yes, here they are also created automaticsly...
i don't know who/what created them...
so if they are not backup... they are used by the system, no??
 
  


Reply


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
howto chowto change file permisions in multiplhange file permisions in multiple dirs? pingvina Linux - Software 3 01-13-2006 03:10 PM
CD ejection permisions. e1000 Ubuntu 3 11-18-2005 09:33 PM
file permisions speedemonV12 Linux - Newbie 8 07-19-2005 11:03 AM
permisions charnel Linux - General 3 07-10-2005 02:53 PM
Permisions ToeShot Linux - General 2 11-30-2001 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:52 PM.

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