LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2011, 08:44 AM   #1
Touch
LQ Newbie
 
Registered: Oct 2009
Distribution: RHEL & Fedora
Posts: 25

Rep: Reputation: 0
Allow commands without SUDO


Hello Everyone,

I am trying to setup a system to allow normal users to execute a command without using sudo. Is this possible?

Thanks

Last edited by Touch; 01-05-2011 at 09:30 AM.
 
Old 01-05-2011, 09:14 AM   #2
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Rep: Reputation: 0
Its possible but I highly recommend that you don't do this. Your giving access to the inner workings of the computer to every one. Any one would be able to edit and potently steal or destroy information and files on the computer.

If you understand the risks and are OK with it then just add the users to the root group.

Last edited by nova49; 01-05-2011 at 09:17 AM.
 
Old 01-05-2011, 09:17 AM   #3
Touch
LQ Newbie
 
Registered: Oct 2009
Distribution: RHEL & Fedora
Posts: 25

Original Poster
Rep: Reputation: 0
I understand that it is risky. However I am having trouble setting up NetBeans to build things because the user account I am using doesn't have permissions to the make command. There must be a correct way to setup an IDE to build but I haven't found anything that helps.
 
Old 01-05-2011, 09:26 AM   #4
TheVillageIdiot
LQ Newbie
 
Registered: Sep 2003
Posts: 9

Rep: Reputation: 0
Can't you just change the permission of make ? chmod o+x make... you just need to find where the make command is. On my Centos system it's located in /usr/bin/

Last edited by TheVillageIdiot; 01-05-2011 at 09:29 AM.
 
Old 01-05-2011, 09:28 AM   #5
Touch
LQ Newbie
 
Registered: Oct 2009
Distribution: RHEL & Fedora
Posts: 25

Original Poster
Rep: Reputation: 0
Sorry Everyone,

I got it figured out. There was a hidden file that was owned by root that i created when testing the make command. Once I removed it everything worked fine.
 
Old 01-05-2011, 09:28 AM   #6
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Rep: Reputation: 0
A possible workaround would be to make another user account and add it the the root user group. Log into the account whenever your need to build projects and log out when your done. This way when you do normal day to day stuff your not at risk of destroying every thing. Its not a perfect solution but it should work for what you want to do.
 
Old 01-05-2011, 09:33 AM   #7
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Rep: Reputation: 0
Glad you got it figured out.

In the future after a solution is reached please mark the thread as solved.
Click thread tools and mark as solved.

Have a nice day.
 
  


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
Is there a list of SUDO commands anywhere? NFI Linux - Newbie 7 06-28-2009 08:19 PM
Problem using sudo <commands> just a man Ubuntu 13 06-05-2009 12:13 PM
sudo not giving me all commands, I have to su. Romanus81 Slackware 6 03-14-2008 10:26 AM
Limited 'sudo' commands Casket Linux - Security 1 10-23-2007 03:05 AM
sudo and at commands ulto Programming 2 05-01-2004 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration