Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
execute stuff as root without knowing the root-password
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
koelle
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2004
Posts: 92
Location: Heidelberg, Germany

PostPosted: Mon Nov 01, 2004 4:45 pm    Post subject: execute stuff as root without knowing the root-password Reply with quote

Hi,

I've got the following problem. I'm using fvwm as windowmanager and my goal is to make it possible for anybody without knowledge of linux for that person to do everything with clicking. Yet there are some things i can only do as root-user. For example k3b only finds the cdrw-device if i'm root. (Using kernel 2.6.8.1)

The next thing is the network. Since i have to pcs but no router I'm not always connected to the modem when i boot, so i don't have eth0 added to default runlevel. My modem distributes IPs to the computers! Then i need to start eth0 afterwards.

If i want to go online i need to start that.

For all those actions i need to be root user. My question is now:

Is it possible to save the root-password in an external file and read this file. Something like this:

sux "read password-file" k3b or
su "read password" /etc/init.d/net.eth0 start

Hope someone can help me.

greetings koelle
Back to top
View user's profile Send private message
koelle
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2004
Posts: 92
Location: Heidelberg, Germany

PostPosted: Mon Nov 01, 2004 4:46 pm    Post subject: Reply with quote

I need to apologize. I didn't read that this is no forum to question. Could a mod put my thread somewhere else?

thank you and sorry

greetings koelle
Back to top
View user's profile Send private message
kmj0377
Guru
Guru


Joined: 26 Sep 2003
Posts: 397

PostPosted: Mon Nov 01, 2004 4:58 pm    Post subject: Reply with quote

There are ways to get su to read from a file, but I would advise against it. You might want to check out sudo, it'll let your normal user execute stuff like root, but without the need to have your root password floating out there :wink:
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Mon Nov 01, 2004 5:38 pm    Post subject: Reply with quote

Moved from Documentation, Tips & Tricks.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum