Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-23-2010, 01:03 AM
|
#1
|
Member
Registered: Dec 2006
Location: Delhi, India
Distribution: Centos 5.8, 6.5 Linux Mint 13 & 16, OpenSuse 12
Posts: 112
Rep:
|
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.
|
|
|
10-23-2010, 02:06 AM
|
#2
|
LQ Newbie
Registered: May 2007
Location: Berlin, FRG
Distribution: Ubuntu
Posts: 22
Rep:
|
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
|
|
|
10-25-2010, 10:13 AM
|
#3
|
Member
Registered: Dec 2006
Location: Delhi, India
Distribution: Centos 5.8, 6.5 Linux Mint 13 & 16, OpenSuse 12
Posts: 112
Original Poster
Rep:
|
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.
|
|
|
10-26-2010, 12:25 PM
|
#4
|
LQ Newbie
Registered: May 2007
Location: Berlin, FRG
Distribution: Ubuntu
Posts: 22
Rep:
|
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.
|
|
|
10-27-2010, 01:34 AM
|
#5
|
Member
Registered: Dec 2006
Location: Delhi, India
Distribution: Centos 5.8, 6.5 Linux Mint 13 & 16, OpenSuse 12
Posts: 112
Original Poster
Rep:
|
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
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.
|
|
|
|
All times are GMT -5. The time now is 11:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|