LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Allow commands without SUDO (https://www.linuxquestions.org/questions/linux-newbie-8/allow-commands-without-sudo-854343/)

Touch 01-05-2011 07:44 AM

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

nova49 01-05-2011 08:14 AM

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.

Touch 01-05-2011 08:17 AM

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.

TheVillageIdiot 01-05-2011 08:26 AM

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/

Touch 01-05-2011 08:28 AM

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.

nova49 01-05-2011 08:28 AM

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.

nova49 01-05-2011 08:33 AM

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.


All times are GMT -5. The time now is 04:46 AM.