• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

How do I assign rights to users?

How do I assign rights to users so that they can access certain directories and execute certain programs?  The users that I created cannot access things like linuxconf, setup, or shutdown unless they are logged in as root. Thanks.
0
vpl4
Asked:
vpl4
  • 5
  • 3
  • 2
  • +3
1 Solution
 
ahoffmannCommented:
install and configure sudo
0
 
vpl4Author Commented:
ahoffmann, where can I get sudo?  Is it on the RedHat Linux Companion CD?
0
 
rrbfCommented:
The sudo home page is at http://www.sudo.ws/
not sure about redhat thing. although it is
on openbsd for which sudo was originally created.
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
vpl4Author Commented:
Thanks everyone.  I will try sudo.  I will try to get back as soon as possible.
0
 
bryanjonesCommented:
worse case - is you can setuid on those executables
0
 
vpl4Author Commented:
Sorry I took so long to reply.  Is there another way to assign rights instead of using sudo?  I don't really like how it works.
0
 
ahoffmannCommented:
only with UNIX's user/group permissions
and SUID/SGID bits on executables
Lot of hinking about it before you do the huge amount of chmods in your system, if you prefere that ...
0
 
samriCommented:
vpl4,

Depending on how the users woould be running those command.  If they need to be physically loggged in to the machine; then ahoffman's comment is most practical - sudo, or chmod+suid.

If those users would be doing some kind of daily routine, maybe you could take a look at the alternate way; Web based maybe.  Interested; take a look at Webmin (http://www.webmin.com/webmin/).  There would be a few ways to get it done with webmin.  Clone a module, and fine-tune permission,and module capability, and assign user/group of users to that that activate the module/applet.  OR/AND, you could create a custom command (some shell scripting), and assign it to a user/group, just like the first scenario.

hope this helps.
0
 
vpl4Author Commented:
I think I will go with sudo.  Could someone recommend who should I award the points to?  There were many people who helped.  Thanks!
0
 
samriCommented:
vpl4,

Basically my personal opinion in awarding pts would be to the most helpful answer.  Some would argue that should been given to the most workable answer.  But in any case, the asker (you) would be the best person to decide.

Another thing to look for is originality.  Expert #1 one thing, and expert #2 elaborate on that.  By right the credits should go to expert#1, but bear in mind that the whole thing would not be workable without expert#2 comment.

So in most case, be fair.  And hey, you can alway split points to be awarded to experts, or if your pts are huge, post another question for the other experts.

Remember that pts are like Currency in EE (so called -- we used to be able to free T-shirt with pts), so the more generous you are (in term of pts and grades), more active in dicsussion, the more the chances other members would jump in to help next time.

Some link that might be a good place to drop by;
Pts split, etc. go to CommunittySupport : http://www.experts-exchange.com/commspt/
Less formal place to talk about (anything), is the Lounge : http://www.experts-exchange.com/lounge/

If you cannot make up your mind -- give it to me :)

cheers.
0
 
vpl4Author Commented:
Sorry I took so long,  I felt that ahoffmann gave me a good answer and he was the first to give it to me.
0
 
samriCommented:
what about me :) I did the PR job. hehe.. :)

happy new year.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 5
  • 3
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now