Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up permissions for a user to access certain programme? 2

Status
Not open for further replies.

stla

IS-IT--Management
Mar 12, 2003
190
DE
(Elementary user)

We have a programme that we would like to install on our RHL5 server.

It will be located here: /opt/my_programme

To access this programme, it will be necessary for a user to login to the server via ssh and execute commands etc. inside the above directory.

We have a user account called 'jenny'; how do we make the said programme available to 'jenny' so that once logged in, it will be possible to navigate to the desired directory?

Best regards
 
I would:

1. create a new Group

groupadd(8) - Linux man page

2. add all users who are to have access to said program to this group

Howto: Linux Add User To Group

3. make access to folder/program through said group

Managing Group Access

Linux File Permissions



Ben

"If it works don't fix it! If it doesn't use a sledgehammer..."

How to ask a question, when posting them to a professional forum.
 
And if the program generates/saves files during execution who do they belong to?

You should also set GUID on the directory otherwise files will be unaccessible or they would inherit parent folder rights and /opt is not writable by default.

A seasoned admin would probably use setfacl for this task to get more flexibility and control over the files/folders involved.

man setfacl to check the usage.


QaTQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top