Tagged Questions
8
votes
3answers
441 views
Why doesn't `sudo cd /var/named` work?
I want to cd into /var/named but it gives me a permission denied error, and when I want to use sudo to do this I am not permitted. What is the technical reason for this, and is it possible to do this ...
1
vote
1answer
33 views
problems with /etc/sudoers
I am running ubuntu 12.04 on i3 laptop. By mistake I changed the permissions and changed the user(from root) of /etc folder and I am getting a error when trying to use sudo like:
sudo: /etc/sudoers ...
0
votes
2answers
45 views
recovering sudo/recovering root ownership on system directories — how? possible?
I'm trying to find out the default ownership & permissions for my ubuntu install. I'm also trying to figure out whether the wrong-headed granted of file ownership to the user robert to system ...
0
votes
1answer
58 views
Sudoers NOPASSWD for command not working but ALL is
I've been trying to grant www-data to use sudo service apache2 restart without a password but no matter what I try, nothing works. I have read a few hundred posts regarding this issue on different ...
1
vote
1answer
73 views
permission denied as root
I am trying to run chown on a directory and I get a permission denied.
I have tried running sudo and also running the command as root.
If root doesn't have permission, how can I change the owner of ...
2
votes
2answers
286 views
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
Whenever I try to do anything at all that requires my password it returns this:
u7ur7l3@ubuntu:~$ sudo
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins
...
0
votes
1answer
56 views
Ubuntu 12.10 damaged: access to partitions and internet connection are lost
My Ubuntu 12.10 is damaged. After I log in, the very right menu (of users, shutdown, etc.) doesn't have any item. The internet connection doesn't establish and the hard disks don't appear while I ...
1
vote
1answer
159 views
Is /etc/sudoers file only suppose to have read only permissions?
-r--r----- 1 root root 723 Jan 31 2012 sudoers
My dist-update frequently fails.
At boot my system frequently asks for file system check. (My system-hardware is file)
I am using
vksTP ...
1
vote
1answer
139 views
Why Ubuntu ask me for for root password while upgrading?
I frequently upgrade the desktop of my daughter (using ubuntu 12.04.1) through the official processes,but in the latest attempt the computer is asking for a root (or super user) password. In the past ...
0
votes
2answers
156 views
How to give a new user permissions to call sudo without a prompt for sudo password?
I am setting up a server in Amazon EC2. I created an image from Amazon's provided images of Ubuntu x64 12 LTS. My goal is to set up a secure svn server there, where access is only possible by IP ...
2
votes
1answer
171 views
Unable to open Update manager or Ubuntu tweak
I cannot open Update manager and Ubuntu Tweak
when I open Ubuntu tweak I get this log
user@laptop:~$ ubuntu-tweak
Traceback (most recent call last):
File "/usr/bin/ubuntu-tweak", line 124, in ...
1
vote
2answers
704 views
sudo: /var/lib/sudo/navneet writable by non-owner (040777), should be mode 0700
This error occurs whenever I try to work with sudo. I changed the permissions of /var/ folder to 777 and I think this causes the error. Please help me get back a functional sudo and /var.
2
votes
1answer
199 views
Can I have a user execute sudo commands without being an administrator? [duplicate]
Possible Duplicate:
How do I add a user to the “sudo” group?
I recently became a UNIX admin for some relatives, and they are quite far up the creek on how to use ubuntu. I know that one key ...
-3
votes
1answer
161 views
How can i recover sudo permission?
I am new to Ubuntu.
I have installed Ubuntu 12.10 on a fujitsu amilo 1536 notebook, and it works just fine.
To extract a tar archive I need root privileges but I can't get them. I can't use sudo ...
21
votes
4answers
638 views
When using sudo with redirection, I get 'permission denied'
When using sudo to allow edits to files, I regularly get 'permission denied'.
For example, my mouse is jittery and sluggish, so I want to disable polling:
sudo echo "options drm_kms_helper ...
1
vote
1answer
231 views
Help recovering broken OS (permissions issue)
(At the bottom there is an important update.)
I was doing experiments in order to backup a remote account to my local system, Ubuntu 12.04 LTS. I'm not confident with duplicity and probably, due to ...
1
vote
0answers
26 views
Give permissions for packages downloaded from the internet and lock them in Ubuntu 12.04 sidebar
I downloaded NetBeans IDE and Eclipse IDE from the internet and installed then. Well, the Eclipse IDE works fine, but when I execute NetBeans IDE directly from the shortcut, without sudo permission, ...
0
votes
2answers
470 views
Cannot change permission for /var/www/ [duplicate]
Possible Duplicate:
problems with sudo permissions - /var/lib/sudo owned by uid
I recently installed Ubuntu Server and put the GUI on so I can get the hang of Linux.
However, I can't seem ...
2
votes
1answer
2k views
Can I add myself to group `root'?
$ id
uid=1000(kev) gid=1000(kev) groups=1000(kev),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),124(sambashare)
$ ls -l /etc/sudoers
-r--r----- 1 root root 723 Jan 31 2012 /etc/sudoers
...
1
vote
1answer
253 views
Error when running sudo, getting a permission denied
I was installing GIT on my machine, when I sudo any thing, this error message appears:
sudo: must be setuid root
I tried from recovery mode to change permissions of usr/bin/sudo by:
chown ...
6
votes
3answers
1k views
Home folder in `root` and not in `home`… I'm confused!
I have an issue with my home folder and this are giving me some permission problems.
I've installed an application that tells me that I have no permission to save in /home/username/Desktop, but in ...
2
votes
1answer
238 views
/ folder permissions
I've changed / folder owner from root to administrator account.
Now no sudo commands are working.
It used to show sudoers are in mode 04666 it should b in the mode 04000
Then i did something and it ...
3
votes
2answers
1k views
Can't Change Permissions of Files in Home Folder without Sudo
For some reason, I can't chmod +x files that are right in my home folder without prepending sudo to the command.
One recent example: I have a file named monitor-off.sh in ~/Documents. I tried to use ...
33
votes
7answers
22k views
How do I install Sublime Text 2?
I installed Sublime Text 2 on 12.04 as per this tutorial.
However I don't have adequate permissions when launching the program from the Unity launcher. For example I cannot install packages, or if I ...
1
vote
2answers
243 views
Why can root still edit files with a permission of 0?
I just wanted to delete most files from an external HD except some certain ones. So I chmod these ones to 0 and did a sudo rm -r ./*. Painfully, the result was that everything got deleted.
Why is ...
0
votes
0answers
166 views
Sudo password doesn't work on Fat Client but works fine on Server
I have a user (say xyz) who is part of the admin and adm group and sudo group.
I can use Sudo when on the server but when I log into the fat clients connected to the server sudo password doesn't ...
2
votes
1answer
103 views
How can I make my system usable after modifying /usr/share/icons's permissions?
I'm running a duel boot/partition machine with Ubuntu 12.04 and Windows 7. On Ubuntu OS, I wanted to change the permissions in one of my directories so could extract files into that directory. In the ...
1
vote
2answers
232 views
If I create or modify any file or directory with sudo then I can only manipulate it with sudo
The general issue is that if I create or modify any file or directory with sudo then it seems that I'm unable to create and modify this file or directory further as any other user than sudo. The rest ...
1
vote
4answers
240 views
Why does nothing work after I randomly changed some file permissions?
Ok so last night i was trying to set permissions to some folders in my File System, since apparently im not an admin on my own computer. And now everything got messed up today and i don't know what to ...
40
votes
4answers
20k views
How do I sudo a command in a script without being asked for a password?
I want to turn my system on automatically every day. So I use the below code in my Python script, but sudo asks me for a password every time:
os.system('sudo sh -c "echo date \'+%s\' -d \'+ \
...
1
vote
1answer
197 views
I just recursively chmod'd everything under / to 750. Any tips?
I won't be the first and I won't be the last, I suppose. While playing around with the find command, I made a whoops and it would appear that instead of changing the permissions of the ~/web directory ...
1
vote
2answers
1k views
no sudo permissions to /etc/hostname
When I try to edit my /etc/hostname file, using sudo nano /etc/hostname (or any other editor) I get the following:
Error writing /etc/hostname: Permission denied
I then tried:
sudo chmod u+w ...
1
vote
2answers
353 views
Installing ZFS changed my sudoers file
Following the wiki's advice, I installed ubuntu-zfs. However, once everything installed correctly, and I tried installing another application via apt-get, I get a weird issue with my sudoers file:
...
0
votes
1answer
49 views
Why are many operations or commands in Ubuntu not allowed normally when you can just do the same thing by typing sudo?
What purpose does this server when bypassing is as easy as typing sudo?
Forgive the naivety here but I am a rookie and I'm sure there has to be a good reason for this, and I'd like to know that.
1
vote
0answers
224 views
my User not a part of any system group
i was trying something on my ubuntu 12.04 ...
basically trying to get my PLex mediaserver to detect movies from network shares
and i thought to add my user and root to group plex that the server ...
5
votes
2answers
209 views
How to prevent users from installing non-free software?
Is it possible to disable installation of non-free or proprietary softwares and applications in Ubuntu?
4
votes
3answers
3k views
How to fix sudo after “chmod -R 777 /usr/bin”?
I enetered chmod -R 777 /usr/bin and now sudo is not working.
It is giving error that sudo must be setuid root.
On looking via Google, some advice said to run chown root:root /usr/bin/sudo
chmod ...
2
votes
0answers
344 views
sshfs permissions problem — need to be root to view some files [closed]
I'm automounting sshfs shares using a script in /etc/network/if-up.d/ and entries in /etc/fstab. I have keys set up for my user so no password is required.
My user (1000) has sudo rights on the ...
0
votes
5answers
974 views
changed /etc permission in oneiric (ubuntu11.10) by using “sudo chmod 665 /etc” cant use sudo now
I screwed up big time. I changed the permission of /etc in ubuntu 11.10 by using following command
sudo chmod 665 /etc
now when ever i try to use sudo it gives the following error:
sudo: can't ...
3
votes
2answers
98 views
Is it possible to change a program's privileges while running?
Is it possible to start a program normally, and then later give it root or some other level of permission without restarting it?
0
votes
1answer
279 views
How can I run PHP scripts without prefixing my scripts with sudo?
I'd like to be able to run PHP scripts without needing to use sudo in every command. My user is not root obviously. How can I accomplish this feat? I'm new to Linux, and I have a little knowledge ...
0
votes
1answer
407 views
How can I use vbetool as a non-root (mmap /dev/zero: Operation not permitted Failed to initialise LRMI (Linux Real-Mode Interface).)
I would like to be able to turn off my screen upon a keypress. I need vbetool to do that (xset dpms force off just blanks it, does not turn it off). However, vbetool needs root priviledges. So I put ...
3
votes
1answer
1k views
Cannot echo “hello” > x.txt even with sudo? [duplicate]
Possible Duplicate:
sudo & redirect output
I'm trying to create a file in /var/www, but even with sudo this fails:
user@debVirtual:/var/www$ sudo echo "hello" > f.txt
-bash: f.txt: ...
1
vote
1answer
197 views
Log viewer cant open syslog after messing up groups
I was doing some VirtualBox stuff today and I had so add my user to vbox group, well I did it wrong and I removed myself from sudoers. I used the recovery console and fixed it with this command:
...
0
votes
1answer
983 views
How can I run XBMC as another user?
It's a little bit complicated as other "how can I run" questions, firstly, because I use this script to run on second screen (TV) full size:
1 #! /bin/bash
2 # Launch XBMC in windowed mode, ...
2
votes
1answer
422 views
Is there a difference between using setuid()/setgid() within a program and invoking it with sudo -u xxx -g xxx?
Consider this python script, which invokes HandBrakeCLI, a program that attempts to read from the dvd drive:
invoke.py
#!/usr/bin/python
import sys
import os
import subprocess as subp
import ...
0
votes
1answer
109 views
Executing adb from php
I am trying to run adb from PHP using:
exec( 'adb devices', $output, $return_val );
but I get 126 error.
I think the problem is that php is running as 'www-data' user and does not have permissions ...
2
votes
2answers
3k views
Run apt-get without sudo
This might be a very naive question, but I wanted to know how I could give multiple users access to a single computer without making them root users. How would I give them limitted sudo access such ...
16
votes
3answers
11k views
sudo: unable to resolve host (none)
I have this issue on AWS on some servers. Whenever I run sudo the terminal is stuck doing seemingly nothing, until it finally spits out this error message. My terminal looks like this:
...
0
votes
2answers
2k views
Add user that can read / write a root, www-data files
How can I do that?
I got user amira on my Ubuntu 11.4, I want him to able to see / read / write a root user files such as /etc/* and apache files
