i screwed up big time.
Grant wrote:But how can sudo get every permissions, if I don't give root's password when asked?If I use my password to run programs as root, it isn't a little insecure?It is repetitive, because I'm already logged, and so it's like a second log in.It will only grant those permissions if the running user is listed in the sudoers file.It's not a second login, it's g
On Fedora 13, in /etc/sudoers I used to have a line:
Cmnd_Alias SOFTWARE=/usr/bin/yum
and then for a user that would have the privilege of installing his/her own RPM packages, an entry like:
david somehost=SOFTWARE
would allow them to run yum with no problems and get the package installed.
Now, I upgraded to F17 and this breaks, just like in the next sample trying to install t
Possible Duplicate:
Redirecting stdout to a file you don’t have write permission on
I'm quite new to Linux and I have a permissions questions. I'm using Linux Mint.
If I go to /opt and do a $ echo hi > file it says permission denied.
If I try with sudo, like this $ sudo echo > file it says permission denied.
Isn't sudo to execute the command as superuser?
Hellow,
i just did a fresh install of ubuntu 12.04 - 32 bit on my vps.
then i created a new user and added it into "sudo" group to allow sudo permission. then i tried to sudo to see whether it works or not. then i got "sudo: must be setuid root" warning. after googling for sometime i found out that /urs/bin/sudo file must be given chmod +s permission to make sudo work.
I am new to Linux, can anyone be kind enough to help me know how to install software from the terminal?
I tried to install java by entering the command in the terminal
sudo apt-get install openjdk-7-jdk
but i get errors ,
E:Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E:Unable to lock the administration directory (/var/lib/dpkg/), are you root?
I also tried roo
I'm new to both ubuntu and TeX. I'm trying to install the fourier package. Your help is very appreciated!
I've installed the 2012 version of TeXlive, and that software works. I can't use tlmgr to add packages though.
I'm confused. Somewhere I have missed something in upgrading to 12.04.
When I click applications > software center and try to install an apt, I can not because I am not root.
I need execute script that have commands which should be run in root mode.
If I put sudo before command then when I run script I see permission denied ( I don't have a chance to write password).
If I run script with sudo then it writes - command not found.
If I put sudo su in the beginning of the script then after I inter password nothing happens.