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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-27-2006, 11:12 AM
|
#1
|
Member
Registered: Nov 2005
Distribution: slack
Posts: 188
Rep:
|
/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.
|
|
|
02-27-2006, 11:29 AM
|
#2
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
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
|
|
|
02-27-2006, 11:43 AM
|
#3
|
Member
Registered: Nov 2005
Distribution: slack
Posts: 188
Original Poster
Rep:
|
tnx for help - tux happy
|
|
|
02-27-2006, 11:43 AM
|
#4
|
Senior Member
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337
|
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
|
|
|
02-27-2006, 12:02 PM
|
#5
|
Member
Registered: Nov 2005
Distribution: slack
Posts: 188
Original Poster
Rep:
|
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.
|
|
|
02-27-2006, 12:37 PM
|
#6
|
Senior Member
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337
|
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.
|
|
|
02-27-2006, 12:42 PM
|
#7
|
Member
Registered: Nov 2005
Distribution: slack
Posts: 188
Original Poster
Rep:
|
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??
|
|
|
All times are GMT -5. The time now is 12:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|