1757004 Members
2180 Online
108858 Solutions
New Discussion юеВ

Re: Permissions

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

Permissions

Can someone tell me a safe permission setting for the following files. 11.0 non-trusted systems.
/etc
/etc/passwd
/etc/group
/etc/hosts
/etc/services
/etc/inetd.conf
/var/adm/wtmp

Thanks
Bob Menefee
UNIX IS GOOD
6 REPLIES 6
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: Permissions

Hi Bob

Here are the default hence safe permissions :

dr-xr-xr-x 27 bin bin 7168 Jun 14 14:05 etc
-r--r--r-- 1 root sys 10446 Jun 14 11:22 /etc/passwd
2 -r--r--r-- 1 bin bin 255 Jun 14 11:22 /etc/group
12 -rw-r--r-- 1 root sys 5411 May 7 16:54 /etc/hosts
20 -r--r--r-- 1 bin bin 9516 Jun 17 16:20 /etc/services
10 -rw-r--r-- 1 root sys 4620 Jun 17 16:20 /etc/inetd.conf
2926 -rw-rw---- 1 adm adm 974880 Jun 25 09:32 /var/adm/wtmp


Manoj Srivastava
James R. Ferguson
Acclaimed Contributor

Re: Permissions

Hi Robert:

I run with:

/etc 555

/etc/passwd, group, hosts, services, inetd.conf 444

/var/adm/wtmp 644

Regards!

...JRF...
T G Manikandan
Honored Contributor

Re: Permissions

Hello,
I have these on my server

dr-xr-xr-x 27 bin bin 7168 Jun 22 15:01 /etc

-r--r--r-- 1 root sys 1553 Jun 22 15:01 /etc/passwd
-r--r--r-- 1 bin bin 1076 Jun 10 12:19 /etc/group
-rw-r--r-- 1 root sys 989 May 23 09:03 /etc/hosts
-r--r--r-- 1 bin bin 9684 Dec 2 2001 /etc/services
-rw-r--r-- 1 root sys 4490 Apr 22 17:42 /etc/inetd.conf
-rw-rw-r-- 1 adm adm 35301960 Jun 25 19:09 /var/adm/wtmp

Thanks
nancy rippey
Trusted Contributor

Re: Permissions

I would have to agree. The only change would be to make inetd.conf
-r--r--r-- 1 bin bin 5735 Aug 22 2001 /etc/inetd.conf
nrip
Victor_5
Trusted Contributor

Re: Permissions

/etc 555

/etc/passwd, /etc/group, /etc/hosts, /etc/services, /etc/inetd.conf 444

/var/adm/wtmp
664

George Abraham_1
Regular Advisor