LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2006, 09:55 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Rep: Reputation: 60
User rights


How do you grant certain access to certain programs in linux like for example, Everytime I have to mount something I have to su and login as root to execute the command. I cant just do that under a standard account without having to be root. In comparison to windows user rights how do you grant that in linux or what is equivalent in linux?
 
Old 07-28-2006, 10:07 AM   #2
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
Hi look into sudo.
also, you can mount things as a user by editing /etc/fstab and adding "user"

eg
Code:
/dev/cdrom  	/media/cdrom  	auto  	ro,noauto,user,exec  	0 0
 
Old 07-28-2006, 10:16 AM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Original Poster
Rep: Reputation: 60
that is great but what about the users that only know how to use a gui and dont want to worry about a command prompt. I have many users that would find that rather tedious.
 
Old 07-28-2006, 10:19 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
You can use things like pmount, supermount and autofs to have CDs and DVDs automagically mounted. Most desktop environments have functionality like this built in but for those running lighter window managers etc it's easy to setup with any of those tools.

I add the 'user' to my fstab and can't see the hassle with opening a terminal once every six months or so when I actually use my DVD drive but that's just me.
 
Old 07-28-2006, 10:25 AM   #5
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Original Poster
Rep: Reputation: 60
thanks so much. One more question: Also will sudo allow a user or a group the ability to install applications and also can you give me an example of a modified sudoers file that grant certain access to ceratin accounts. The man pages is rather ugly. thanks

Last edited by metallica1973; 07-28-2006 at 11:50 AM.
 
Old 07-28-2006, 09:43 PM   #6
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
Quote:
Also will sudo allow a user or a group the ability to install applications
It kind of depends on how you want to install. You can add the command for your package manager to the sudoer file which should let you use sudo to install things that way. If you want to be able to install things from source I think it could work if the command for make is listed but I haven't done that, so I'm not certain.

For an example, I've just added one line, listing a few commands that I decided to setup to use sudo (my package manager, a terminal, a file browser, the gui configuration for my logon, and mount and unmount).

Code:
andy ALL=/usr/bin/pacman,/usr/bin/xterm,/usr/bin/emelfm2,/bin/mount,/bin/umount,/opt/gnome/sbin/gdmsetup,
Hope that helps some.
 
Old 07-29-2006, 10:53 AM   #7
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Original Poster
Rep: Reputation: 60
so basically with sudo you can grant access to certain commands but in addition to that you would have to grant file permissions as well. Currently with my standard user account I cannot read only certain files and I have to su into them to modify them. So is it safe to safe that it is a combination of the two?
 
Old 07-29-2006, 11:08 AM   #8
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
if you execute a command with sudo it's the same as doing it as root, so you shouldn't have to actually mess around with any permissions.
 
Old 07-29-2006, 11:51 AM   #9
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Original Poster
Rep: Reputation: 60
you are the man, many thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
$ifdown and up for a user rights ekdya Debian 4 11-08-2005 04:33 AM
texconfig and user rights molemi Slackware 0 03-15-2005 09:54 AM
user rights transfer ahmetaa Linux - General 1 08-19-2003 01:39 PM
Squid proxy with user authentication and user rights duvanhorn Linux - Networking 0 08-07-2003 03:40 AM
User rights rcoman Linux - Networking 2 04-21-2003 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration