LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-23-2010, 01:03 AM   #1
turiyain
Member
 
Registered: Dec 2006
Location: Delhi, India
Distribution: Centos 5.8, 6.5 Linux Mint 13 & 16, OpenSuse 12
Posts: 112

Rep: Reputation: 16
Command mtr access as Normal System User


Dear Experts,

I am using vicidialnow 1.2 VERSION: 2.0.4-122 and BUILD: 81011-0855 (CEntos Based Dialer). In all the way, it is working fine. I want to give the access of command /usr/sbin/mtr to a Normal System USer, which is not working according to my wish. I have make the entry in as sudo or make the soft link of /usr/sbin/mtr to /bin. But all in vain. And i am not in the condition to give the root access to the user. Kindly suggest the way.

-- With Thanks in advance

Last edited by turiyain; 10-23-2010 at 01:07 AM.
 
Old 10-23-2010, 02:06 AM   #2
Jebram
LQ Newbie
 
Registered: May 2007
Location: Berlin, FRG
Distribution: Ubuntu
Posts: 22

Rep: Reputation: 4
Administration of sudo

Symlinks do not work that way. They are designed to act as
cross references only, not to change security (That's why
every symlink has permissions "lrwxrwxrwx"), and that is deliberate.

To someone with a computer science degree I might simply
recommend to read "sudoers(5)". My advice to you is a little
different - Using a text editor program (like gedit or pico),
add a line similar to this to the "/etc/sudoers" text file:
my_non_root_mtr_user ALL = /usr/sbin/mtr

If you want to learn about this configuration file,
Open a terminal window, enter the command
"man 5 sudoers", then search for the examples section (by
entering "/EXAMPLES" and pressing enter).
That should give you a few ideas.

Last edited by Jebram; 10-23-2010 at 02:09 AM. Reason: missed a key press in instructions
 
Old 10-25-2010, 10:13 AM   #3
turiyain
Member
 
Registered: Dec 2006
Location: Delhi, India
Distribution: Centos 5.8, 6.5 Linux Mint 13 & 16, OpenSuse 12
Posts: 112

Original Poster
Rep: Reputation: 16
Thanks for the reply, but the said entry (/usr/sbin/mtr ) when user is executing the mtr command, it says that "unable to get raw sockets".

Kindly guide.
 
Old 10-26-2010, 12:25 PM   #4
Jebram
LQ Newbie
 
Registered: May 2007
Location: Berlin, FRG
Distribution: Ubuntu
Posts: 22

Rep: Reputation: 4
Using sudo to start mtr as non-superuser

Sorry! I should also have mentioned:
The non-superuser can not execute the command directly, but only through the "sudo" tool -
With a command like this:
sudo /usr/sbin/mtr example_targetcomputer

Before executing mtr, the sudo tool will likely ask for a password to be entered. But this is not a request for the root password, merly a request for the user to repeat her normal account password.
HTH.

Last edited by Jebram; 10-26-2010 at 12:28 PM. Reason: Supplied title, typo fixed.
 
Old 10-27-2010, 01:34 AM   #5
turiyain
Member
 
Registered: Dec 2006
Location: Delhi, India
Distribution: Centos 5.8, 6.5 Linux Mint 13 & 16, OpenSuse 12
Posts: 112

Original Poster
Rep: Reputation: 16
Millions of thanks to you Jebram. I was not issuing the command with sudo. This was the mistake. This way you saved my server from newbie hands.

Thanks again.



Quote:
Originally Posted by Jebram View Post
Sorry! I should also have mentioned:
The non-superuser can not execute the command directly, but only through the "sudo" tool -
With a command like this:
sudo /usr/sbin/mtr example_targetcomputer

Before executing mtr, the sudo tool will likely ask for a password to be entered. But this is not a request for the root password, merly a request for the user to repeat her normal account password.
HTH.
 
  


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
Can not get access to mysql by normal user chinaundead Fedora 3 10-27-2010 02:33 AM
enable a command that requires root access for a normal user marsguy Linux - General 2 10-08-2006 09:43 AM
Not Able to Access NTFS as normal user rob0t Slackware 6 09-21-2005 06:57 PM
can to get access to mysql from a normal user chinaundead Linux - Software 4 04-09-2004 07:56 PM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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