Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi Guys
I have an epson sx130 printer,copier,scanner.I am trying to find a programme called inkblot so I can tell the ink levels in my printer.I have tried the programmes with ubuntu without success but I have been told that the inkblot one will work.
Best regards
Hmmm odd. You put in your user password, correct? Since you are running Ubuntu, the root account is disabled. Did you enable the root account? Are you the administrator on this computer? Have you installed anything on your computer in the past?
Hi Alex
Yes I keyed in my password (which the terminal would not accept)yes I am the administrator.No I havent installed anything yet with the terminal this is the first try with you as my guide.As for opening a root account I know nothing of how to do this.
F.W.
Was there a space between "cat" and "/etc/sudoers" when you put in the command? If you don't have a sudoers file, then something bad happened during your install of Ubuntu. Ubuntu should create one automatically.
** EDIT **
If you truly do not have one, here is a generic one (this is from Arch but it's probably the same thing):
Code:
## sudoers file.
##
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
##
## See the sudoers man page for the details on how to write a sudoers file.
##
##
## Host alias specification
##
## Groups of machines. These may include host names (optionally with wildcards),
## IP addresses, network numbers or netgroups.
# Host_Alias WEBSERVERS = www1, www2, www3
##
## User alias specification
##
## Groups of users. These may consist of user names, uids, Unix groups,
## or netgroups.
# User_Alias ADMINS = millert, dowdy, mikef
##
## Cmnd alias specification
##
## Groups of commands. Often used to group related commands together.
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
# /usr/bin/pkill, /usr/bin/top
##
## Defaults specification
##
## You may wish to keep some of the following environment variables
## when running commands via sudo.
##
## Locale settings
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
##
## Run X applications through sudo; HOME is used to find the
## .Xauthority file. Note that other programs use HOME to find
## configuration files and this may lead to privilege escalation!
# Defaults env_keep += "HOME"
##
## X11 resource path settings
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
##
## Desktop path settings
# Defaults env_keep += "QTDIR KDEDIR"
##
## Allow sudo-run commands to inherit the callers' ConsoleKit session
# Defaults env_keep += "XDG_SESSION_COOKIE"
##
## Uncomment to enable special input methods. Care should be taken as
## this may allow users to subvert the command being run via sudo.
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
##
## Uncomment to enable logging of a command's output, except for
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
# Defaults log_output
# Defaults!/usr/bin/sudoreplay !log_output
# Defaults!/usr/local/bin/sudoreplay !log_output
# Defaults!/sbin/reboot !log_output
##
## Runas alias specification
##
##
## User privilege specification
##
root ALL=(ALL) ALL
## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group sudo to execute any command
# %sudo ALL=(ALL) ALL
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw # Ask for the password of the target user
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
## Read drop-in files from /etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /etc/sudoers.d
Make a new file like this:
Code:
gedit tmp
Copy the above into that file and at the very end, add something like this:
Code:
<your username> ALL =(ALL) ALL
Then do this:
Code:
cat tmp > /etc/sudoers
Alex Brinister
Last edited by abrinister; 08-16-2012 at 10:53 AM.
Reason: New sudoers
Hi Alex
I put in the command cat /tmp/sudoers in and got permission denied.I would like to thank you for taking the time to give me all usable code that you did but unfortunately it is way over my head at this stage.I have found a terminal emulator in the ubuntu software centre I mght try that.
F.W.
You have to make a file called tmp (in your home directory) then paste the sudoers file I provided in there and add the ALL stuff at the end. Then, you write tmp (a file, not the directory) to a file called /etc/sudoers.
Code:
gedit tmp
<copy/paste stuff in the file>
<add "<your username> ALL =(ALL) ALL" and save>
cat ./tmp > /etc/sudoers
A terminal emulator isn't going to help. Your user account does not have root access, therefore you cannot do any system administration no matter what software you use. The sudoers file is essential. If the above stuff gives you "permission denied", then you will need to boot into a livecd and do it from there.
Hi Alex
When I try to copy sudoers file to gedit tmp I get an instruction that this file needs to be edited with VISUDO.What is VISUDO?
I am going to bed now my head aches.
Best regards F.W.
ViSudo is basically a program that launches the vi editor, except that it can only edit the sduoers file. I think you are going to have to boot into a Ubuntu livecd, mount your hard drive, and copy the tmp file to /etc and rename it sudoers. If you don't have a tmp file, then you can just copy what's above.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.