Operating System - HP-UX
1825775 Members
2127 Online
109687 Solutions
New Discussion

Re: Sudo for editing files in some directory

 
Lora Ganeva
Regular Advisor

Sudo for editing files in some directory

Hi,
I have installed sudo on my hp-ux 11i system and I'm having some troubles with giving permissions to users other than root for editing files. I can't understand where I should put the name of the directory for which the user will have write perm.

Any help would be greatly appreciated.
5 REPLIES 5
Lora Ganeva
Regular Advisor

Re: Sudo for editing files in some directory

hi again,

actually the problem is how to allow the writing of files, not only viewing.
Tom Geudens
Honored Contributor

Re: Sudo for editing files in some directory

Hi Lora,
While sudo is a great tool for "executing something as another user" I doubt it is usefull for your problem.

Add the users you want to edit those files in a group and change the group-permissions of those files (and make sure the users have access - again by group - to the directory).

Or am I misunderstanding your problem ?

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
hein coulier
Frequent Advisor

Re: Sudo for editing files in some directory

watch out to user vi thru sudo : one can execute commands via vi !
Lora Ganeva
Regular Advisor

Re: Sudo for editing files in some directory

thank You for your quick replies.
actually the /usr/bin/vi statement si sudoers file does not decide my problem.
Lora Ganeva
Regular Advisor

Re: Sudo for editing files in some directory

Thank you all,
the problem was that I put the localhost statement and I had to put the hostname of the localhost server in the sudoers file.