LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-29-2007, 10:19 AM   #1
zach8202
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
User Privileges on Programs


Hey everyone
Ok, So I've just setup a SUSE 9 Linux box. I want to run the program Ethereal to keep an eye on traffic coming in. When I am logged in as a user it says I don't have permission (it obviously works fine when I'm root). (I'm also kind of new to Linux FYI). I've played around with sudoers but wasn't totally sure what I was doing.

So basically, my question is: Does anyone know how to grant access for a user to specifically one program?
Thanks! Zach
 
Old 03-29-2007, 09:54 PM   #2
tytower
Member
 
Registered: Jun 2006
Location: Oz
Distribution: Mandriva 10.0,10.1,10.2,2006,Mepis 6.0,Opensuse10.2,Puppy 2.14
Posts: 250

Rep: Reputation: 30
I dont but I started looking-does Yast / AppArmour have any use here?
 
Old 03-30-2007, 05:07 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use the "visudo" program to configure the /etc/sudoers sudo configuration file. It is well commented, and there are a couple of commented examples you can use as a template:
Code:
# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now
The sudoers file has its own manpage.
 
Old 03-30-2007, 07:01 AM   #4
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
If you want to run ethereal with root privileges automatically, without a password prompt, you need to set it setuid root, i.e.
Code:
chmod u+s `which wireshark`
or
Code:
chmod u+s `which ethereal`
, depending on whether you use a recent version. You may also need to add the line
Code:
/usr/bin/wireshark root:root 4755
or
Code:
/usr/bin/ethereal root:root 4755
in /etc/permissions.local, to avoid the permissions be reset when suseconfig runs.

Be warned that this may pose a security threat, if someone logs in to your system and finds a way to exploit this.
 
  


Reply

Tags
ethereal, program



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
Me don't understand user privileges... tcv Linux - General 6 07-25-2006 08:26 PM
Changing user privileges vikiugu Linux - Software 1 10-24-2005 04:55 AM
Root privileges for user ar1 Linux - Security 2 01-07-2005 09:33 PM
User with root privileges ShakyJake Linux - Newbie 2 06-18-2004 12:12 PM
user privileges rieta Linux - Newbie 9 08-29-2002 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:17 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