Operating System - HP-UX
1748180 Members
4025 Online
108759 Solutions
New Discussion

/etc/default/security file entries

 
SOLVED
Go to solution
john guardian
Super Advisor

/etc/default/security file entries

One of the junior admins asked earlier today about the following line:

SU_ROOT_GROUP=wheel

 

 

Apparently, the actual line in the file was:

SU_ROOT_GROUP="wheel"

 

 

I did not see anything specific in the security man page that documents whether or not a STRING vs a NUMERIC  value can/cannot be enclosed w/quotes. He stated it would not do what was intended when enclosed by quotes. I haven't seen issues one way or the other. Has anyone else encountered this issue? Or can anyone say, with authority, that this should not matter?

 

Thx.

 

 

 

2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: /etc/default/security file entries

>I did not see anything specific in the security man page that documents whether or not a STRING vs a NUMERIC  value can/cannot be enclosed w/quotes.

 

If it doesn't say it, it probably means it's not allowed.  I see nothing in security(4) that allows spaces so no quotes are needed.

Patrick Wallek
Honored Contributor
Solution

Re: /etc/default/security file entries

I just set the following entry in /etc/default/security on an 11.23 system:

 

SU_ROOT_GROUP="wheel"

 

I then tried to su to root from a user that is part of the wheel group and got the following error:

 

sg1 blh home/blh $ su -
System Password:
su: Bad SU_ROOT_GROUP entry in /etc/default/security

 

So apparently quotes are not allowed.  It worked fine without the quotes around wheel.