Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I need a command to run on Linux to install mplayer. I'm not finding the command anywhere, and when I try to use the zypper command to install mplayer it tells me I am not a sudoer. What should I do?

share|improve this question
1  
We need some more information. What distribution are you using (openSUSE, I'm guesing)? Can you show the exact commands you gave and the exact error messages you got? Is this your own system? Do you expect to have sudo rights for administrative access? –  mattdm Mar 7 '11 at 23:44
    
MPlayer is one package I like to install from source. It's a little harder than ./configure && make && make install but some distros ship really useless versions. And you don't need root for that just use --prefix=${HOME}/mplayer. –  stribika Mar 8 '11 at 7:32

1 Answer 1

Firstly, you should read man sudoers to know what you will be doing.

With that understanding, log in as root (can be done via su - command) and run visudo.

You will be editing a security-critical system file, so make sure you understand the consequences. My suggestion on a sane contents of that file is to have

Defaults log_output,rootpw

and

%wheel ALL=(ALL) ALL

Then logout and you should be able to run the command you wanted, supplying the root password when asked.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.