PDA

View Full Version : login as root? how?



Mogiin
10-12-2003, 12:56 PM
I must change a file to let my scanner work in Knoppix.

But when I want to save this file , I don't have write permissions. I only can do that as "root".

I already created a password for "Root" , but how can I login as root?

thans4u
10-12-2003, 01:25 PM
try sudo su on a console.

Tech2k
10-12-2003, 01:30 PM
I must change a file to let my scanner work in Knoppix.

But when I want to save this file , I don't have write permissions. I only can do that as "root".

I already created a password for "Root" , but how can I login as root?

Well I gurss you know about su and sudo on knoppix live cd to go from $ to #.You say you created the passwd already if so then to login type :
#login root <then passwd when asked>
#login user <then passwd when asked>
$su <passwd when asked>
$login <name and passwd when asked>
#login <name and passwd when asked>

Get the idea?

CivilEng
10-12-2003, 01:55 PM
Hey there;

One of the nicer little tricks in Knoppix is "Run as a different user (GKsu)" You can find it under the K-menu > System > Run as a different user (GKsu).

When it starts, you should type in kedit as the program to run, and make sure it is running as root (you'll see... pretty self-explanatory). From there, open the XXXX.conf file you're editing in the SANE directory and when you're done editing, just save it. Because this program is running as root, you will have the required root permissions.

I find GKsu so useful, I have it's icon in my kicker.

Good luck!

Civ

Mogiin
10-12-2003, 03:43 PM
Thnx , I hope my scanner will work now :)

Mogiin
10-12-2003, 05:32 PM
Well it's still not working.

I think I logged in as Root , but still can't modify the "hp.conf" file. No write permissions.

Please help...

hw-tph
10-12-2003, 11:26 PM
I think I logged in as Root , but still can't modify the "hp.conf" file. No write permissions.

chmod o+w hp.conf should make the file writeable for root.

hw

Mogiin
10-13-2003, 11:02 AM
Thank you , I hope it will work now :)