Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Enabling root access in PCLinuxOS

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
mikejd
LXF regular


Joined: Fri Apr 08, 2005 5:46 pm
Posts: 131
Location: Huntly, Aberdeenshire

PostPosted: Fri Oct 12, 2012 11:39 am    Post subject: Enabling root access in PCLinuxOS Reply with quote

I have PCLinuxOS installed on a machine which I run as a printer server using an Epson SX435W printer/scanner. This works fine for printing over the network and for scanning with iscan on the server. However I am unable to get the scanner working from another machine.

My problem is not actually with iscan but in getting root access on the server to make changes to files to make it work.

If I try to log-in as root I get a message that I am not allowed root log-in. I tried to sudo kwrite to edit files but didn't have sudo installed. I installed sudo and now I can run sudo and it asks for a password then says I don't have permission as I am not entered in sudoers file. I can't change the sudoers file as I don't have root access and I can't get root access because I'm not in the sudoers file - impasse!!

Any suggestions?

Mike
Back to top
View user's profile Send private message Visit poster's website
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1674
Location: Guisborough

PostPosted: Fri Oct 12, 2012 12:48 pm    Post subject: Reply with quote

Not sure if you are trying a GUI login or terminal but if GUI try a terminal.

In a terminal type the following

Code:

su


enter the root password when asked.
_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8467
Location: Warrington, UK

PostPosted: Fri Oct 12, 2012 1:11 pm    Post subject: Reply with quote

If all else fails, you could boot from a live CD and edit sudoers manually.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
mikejd
LXF regular


Joined: Fri Apr 08, 2005 5:46 pm
Posts: 131
Location: Huntly, Aberdeenshire

PostPosted: Fri Oct 12, 2012 1:45 pm    Post subject: Reply with quote

OK I can use su + password then open sudoers with vim but it says you have to use visudo to edit. Did this and tried to read man sudoers but I can't work out how I edit and what the correct entry should be.

I guess I'll stick with using the server to scan and transfer the files over the network. Just means I have to log-in to the server.

Thanks,
Mike
Back to top
View user's profile Send private message Visit poster's website
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1674
Location: Guisborough

PostPosted: Fri Oct 12, 2012 2:05 pm    Post subject: Reply with quote

Why not just edit the files you need to make ISCAN work as root and not bother with sudo for now.

once logged in as root you can still launch kwrite from the terminal.

Edit...
Have a look at this link on editing with visudo It's for debian but may help in your understanding.
_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8467
Location: Warrington, UK

PostPosted: Fri Oct 12, 2012 10:06 pm    Post subject: Reply with quote

visudo is kjst a wrapper that uses $EDITOR to edit sudoers and does some syntax checks before overwriting the original. You can do it directly with an editor but visudo is safer. As for what to add, try one of

Code:
%wheel  ALL=(ALL)       ALL
username  ALL=(ALL)       ALL


The first line gives sudo access to all members of the wheel group, the conventional choice for sudo access, the second line does the same but for a single user.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! 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
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast