LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Suid? (https://www.linuxquestions.org/questions/linux-software-2/suid-481283/)

whishkah 09-07-2006 09:54 AM

Suid?
 
I have suid installed on PCLinuxOS. However, in my user account it will not let me run a program with super user abilities. The "enter root password to continue" text pops up I enter the root password and then nothing. In a terminal I type "su" then the password. Then nothing happens the prompt doesn't even come up. It is just a blank line that I can type in. How to I configure my system to use this?

Thanks...

matthewg42 09-07-2006 10:26 AM

What do you mean "I have suid installed"? AFAIK, suid something you do to an existing program file. It's a special permission which says (of the program file it is set on):

Quote:

when someone runs this program, run the process as if the owner of the file ran it instead of person who called the program.
If you have set the suid permission on a file - which file, and who is the owner of the file?

Do you mean sudo? This is program which achieves much the same thing as using the suid permission, but has less problems (using suid is generally considered a bad thing, and should be used with caution).

whishkah 09-07-2006 10:45 AM

Yes, I meant sudo. Sorry about that, I do have sudo installed. How do I get to use super user access?

matthewg42 09-07-2006 10:55 AM

Not sure about PCLinuxOS and sudo. I don't know how PCLinuxOS is set up for that stuff. Sorry :(

dive 09-07-2006 12:15 PM

Quote:

Originally Posted by whishkah
In a terminal I type "su" then the password.

Type 'su <username>' to switch to user, or leave blank to switch to root. Then it will ask for password. You can also use 'su -' which will remember enviromental variables like PATH.

Or type 'sudo <program>' to run a program as root. It will ask for pass.

'man sudo' and 'man su' for more help

whishkah 09-07-2006 02:17 PM

Nevermind... Once I found out I was calling it the wrong thing that made everything easier.

-I went into synaptic and found the program. Then I started playing around in a terminal. I figured why not and tried, logged in as root:

# sudo --help

~then~

# sudo [ -u whishkah ]

That seems to have worked. Thank you all for your help.


All times are GMT -5. The time now is 05:53 PM.