| View previous topic :: View next topic |
| Author |
Message |
mikejd LXF regular
Joined: Fri Apr 08, 2005 5:46 pm Posts: 129 Location: Huntly, Aberdeenshire
|
Posted: Fri Oct 12, 2012 11:39 am Post subject: Enabling root access in PCLinuxOS |
|
|
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 |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1569 Location: Guisborough
|
Posted: Fri Oct 12, 2012 12:48 pm Post subject: |
|
|
Not sure if you are trying a GUI login or terminal but if GUI try a terminal.
In a terminal type the following
enter the root password when asked. _________________
Ubuntu LXDE 12.04 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
|
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8036 Location: Warrington, UK
|
Posted: Fri Oct 12, 2012 1:11 pm Post subject: |
|
|
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 |
|
 |
mikejd LXF regular
Joined: Fri Apr 08, 2005 5:46 pm Posts: 129 Location: Huntly, Aberdeenshire
|
Posted: Fri Oct 12, 2012 1:45 pm Post subject: |
|
|
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 |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1569 Location: Guisborough
|
Posted: Fri Oct 12, 2012 2:05 pm Post subject: |
|
|
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. _________________
Ubuntu LXDE 12.04 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
|
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8036 Location: Warrington, UK
|
Posted: Fri Oct 12, 2012 10:06 pm Post subject: |
|
|
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 previous topic :: View next topic |
|