LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-01-2002, 09:11 PM   #1
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
Smile user permissions


i want to give user only some permissions like he can "mount" and run "kppp".
how can i do that.
thanks in advance.
 
Old 11-02-2002, 11:41 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Users can mont partitions specified in /etc/fstab. With other ones there's a problem (and the same with kppp). I guess you need to configure sudo.
 
Old 11-03-2002, 03:17 PM   #3
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Original Poster
Rep: Reputation: 30
oah man configuring sudo is very hard i think.
but isnt there any way to change the execulteable binary,s permission?
and can you tell the line we have to write in/etc/fstab?
thanks a lot for your reply.
 
Old 11-03-2002, 03:47 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
in fstab you will normally specify the "user" option. as for the kppp one, well you can set suid bit on the binary (chmod +s /../kppp) but things like that are often checked for by security related programs
 
Old 11-04-2002, 03:47 PM   #5
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Original Poster
Rep: Reputation: 30
chmod 4777 worked on some like "shutdown". but not on a lot of them.so i think now that reading about sudo is necessary.
thanks a lot for your help acid_kewpie and mara .
 
Old 11-06-2002, 08:08 AM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Well, if you're lazy you can give the program "setuid root". But it's not safe.
 
Old 11-07-2002, 01:20 AM   #7
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Original Poster
Rep: Reputation: 30
no doubt i am lazy.
thats why i am on forum. and as i have come so reply my this question.
with sudo can we bound a user to use some commands like "passwd" with witch user can even change root password.

If its not possible then i think that it is better to do :0: in /etc/passwd in front of user ID.than sudo.
thanks
 
Old 11-07-2002, 01:39 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Well, when you configure sudo, you allow a user to run a certain program as root (or another user). If 'passwd' is not included in the list, the user won't be able to run it as root.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user permissions cubax Linux - Security 4 12-17-2004 01:48 PM
user permissions blubbfish Linux - Security 2 04-28-2004 06:33 AM
user permissions blubbfish Linux - Newbie 1 04-27-2004 01:22 PM
user permissions Hmmyah Linux - Newbie 4 12-11-2003 08:03 PM
User Permissions BigDDave2001 Linux - Security 4 11-17-2003 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:14 PM.

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