Operating System - HP-UX
1832367 Members
2946 Online
110041 Solutions
New Discussion

How to give access to root owned files without root login?

 
SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

How to give access to root owned files without root login?

Hi,

HP-UX 11.0

We want to give access to a certain directory tree which has files owned by root (uid:gid)
to a user account that is not root.

We basically want someone to login as a non-root user but have access (r/w) to only one directory of files owned by root.

(We have a shadow password file setup from running bastille).

Is this possible? Can "SAM" do this?
Do we need sudo or some other method?

10 points to any good answer.
Thank you
Gino
7 REPLIES 7
Pete Randall
Outstanding Contributor
Solution

Re: How to give access to root owned files without root login?

Gino,

Use the "chgrp" or "chown" command to change the group ownership of all the files in the directory and make the user a member of the group that owns these files.


Pete

Pete
Bruno Ganino
Honored Contributor

Re: How to give access to root owned files without root login?

Modify manually /etc/group and /etc/passwd
(create other user with same settings of root)
Bruno
Torino (Turin) +2H
Pete Randall
Outstanding Contributor

Re: How to give access to root owned files without root login?

Gino,

While doing what Bruno suggests will work, it will also end up creating a root equivalent with all the power of root. Not only is this dangerous, it doesn't really match your requirement.


Pete

Pete
Bruno Ganino
Honored Contributor

Re: How to give access to root owned files without root login?

Gino, Pete has reason !
I am confused word same with word some....
Sorry (i speak english very little)!
Bruno
Torino (Turin) +2H
Geoff Wild
Honored Contributor

Re: How to give access to root owned files without root login?

Yes, you could use sudo: http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/sudo-1.6.7p5/

Do they need to access the files from Unix?

If not, why not try samba with a username.map and share that directory.

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Keith Bevan_1
Trusted Contributor

Re: How to give access to root owned files without root login?

Gino,

Regulate permissions with chmod, chown,chgrp

alternativley use sudo or upm

Keith
You are either part of the solution or part of the problem