General :: Permissions Of The /etc/sudoers Got Changed
Sep 28, 2010
I changed the permissions of /etc/sudoers trying to make it writable using following command:
sudo chmod o+w /etc/sudoers
and now when i try to use the sudo command i am getting the following error:
/etc/sudoers is mode 0442 should be mode 0440
View 8 Replies
ADVERTISEMENT
Jun 21, 2010
One of our client was complaining that their server was down and mysql and apache services were down. The server is Ubuntu 8.04. When we checked, the permissions of /etc/init.d/mysql and /etc/init.d/apache2 were changed to 644 from 755. How could this be possible?I need your valuable suggestions on how can i monitor whether any malicious intrusions or scripts are running.
View 2 Replies
View Related
Mar 7, 2011
i have this problem and i may need professional help; it appears smb4k made my /etc/sudoers file writable (according to log), hence, any sudo command will coerce this error:
Code: ubuntu@ubuntu~$ sudo any sudo: /etc/sudoers is mode 0640, should be 0440 sudo: no valid sudoers sources found, quitting i wanted to boot into recovery console and chmod 0440 /etc/sudoers, but it's a live system - it doesn't have a recovery mode. [URL].. How would i mount the live system from another liveCD?
View 4 Replies
View Related
Jun 24, 2010
I recently got a T-Mobile Tap and I've been trying to connect it via USB to my laptop running Lucid.When I open up the icon that shows up on my desktop after connecting it, I can't run the setup files inside. It says: The file '/media/HUAWEI/checksetup.exe' is not marked as executable. If this was downloaded or copied form an untrusted source, it may be dangerous to run. For more details, read about the executable bit.When I try to change the permissions from ready only, I get: Sorry, could not change the permissions of"checksetup.exe": Error setting permissions: Read-only file systemCan I tried calling T-Mobile but they said they don't troubleshoot with Linux. They said it's an "older operating system".
View 2 Replies
View Related
Apr 8, 2010
I have an NFS server on Windose Server 2003. I use it to back my Linux/Solaris databases up to. I mounted the NFS share on the Linux box. I was testing the permissions to it, and accidentally did a chown sybase:sybase /OLBackupOLBackup is the root directory of the NFS share. When I did the chown command, it changed the permissions on the share. Now it seems that linux is controlling the permissions. In windose I cant add users/groups. How can I remove Linux from owning the permissions. Im not sure if this is a windose issue or a linux issue, but figured I would start asking here first.
View 1 Replies
View Related
May 9, 2011
just be aware of this in 13.0 and previous, assigned user numbers begin at 500 by default. in 13.37, they begin at 1000. this is especially important if you have a separate drive or partition mounted as /home and you want to keep your /home data under the same user name while migrating to 13.37 (and like me are keeping a dual boot while making the transition).
View 14 Replies
View Related
May 10, 2011
I've made a really critical and simple mistake and now I am trying to recover my computer. I accidentally logged into root and was trying to change permissions for the current directory with "." but instead used a "/" which started changing permissions of everything from / recursively. I quickly realized the mistake I made after it started and aborted the process by pressing ctrl+C. However I know many things are still not right because, even though I tried to reboot and change the permissions back to 0755 from the recovery mode root console. I still get errors when gnome tries to start..Here is the exact error I am getting. "There is a problem with the configuration server (/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256". I'm pretty sure because of the way I aborted or because of the time the filesystem was running with 644 permissions, some amount of damage was done. Any way to recover it to normal? Or is there a way to recover it from the Ubuntu CD?
View 3 Replies
View Related
Feb 23, 2010
I have a recently setup my first linux server (hardy) and am having problems with the permissions for a log file being changed. I believe this is caused by syslogd, but am not sure how to correct it. Bacula will report it is unable to start a backup because it is unable to open the log file (/var/lib/bacula/log) "permission denied". After changing the owner from syslog to bacula, the backup will resume. However, the following day I encounter the same problem because the owner of the log has been changed back to syslog.I see where the permissions for logs are altered in sysklogd, but I am not certain how to make bacula exempt or if this is the right approach.
View 1 Replies
View Related
May 31, 2011
I have tried several things to attempt to fix my sudoers file however it is still coming up with errors. The error says
[code]...
the sudoers configuration file is set to the default as I have ran a dpkg on it, have also uninstalled and reinstalled it, and went over the configuration file ensuring it looked like the defaults I had seen online.
View 8 Replies
View Related
Aug 12, 2010
I wrote a C++ program that uses serial port in fedora. Since normal user has no permission to read/write to /dev/ttySx, the program doesn't work. if I changed the permissions using chmod in su, it will works for that session. When restarts the permission changed to default again. So what to do a normal user program to access /dev/ttyS0?
View 3 Replies
View Related
May 23, 2010
I did a clean install from Ubuntu 09.04 to 10.04 and restored my files from tar.
Everything worked fine until I tried my weekly rsync backup.
The permissions seemed to be causing problems, so I recursively changed all the permissions in my home directory:
Code:
~/Documents$ sudo chmod -R 644 /home/wolf/
[sudo] password for wolf:
chmod: cannot access '/home/wolf/.gvfs': Permission denied
So now all the directories and files have read permission for everyone:
Code:
~/Documents$ ls -A
ls: cannot open directory .: Permission denied
~/Documents$ sudo ls -lA
[sudo] password for wolf:
total 80
drw-r--r-- 2 wolf wolf 4096 2010-05-22 20:45 career
drw-r--r-- 23 wolf wolf 4096 2010-05-02 17:17 computer_languages
drw-r--r-- 2 wolf wolf 4096 2009-08-09 23:29 .ecryptfs
drw-r--r-- 21 wolf wolf 4096 2010-05-02 17:23 misc
-rw-r--r-- 1 wolf wolf 27298 2010-05-23 13:01 next.odt
drw-r--r-- 3 wolf wolf 4096 2010-05-23 15:46 PC_maintenance
drw-r--r-- 5 wolf wolf 4096 2010-05-08 01:43 software_projects
Now I can't even look at my own directory:
Code:
/home$ cd /home/
/home$ ls -lA
total 20
drwx------ 2 root root 16384 2010-05-07 01:01 lost+found
drw-r--r-- 42 wolf wolf 4096 2010-05-23 15:35 wolf
/home$ cd /home/wolf
bash: cd: /home/wolf: Permission denied
/home$ sudo cd /home/wolf
[sudo] password for wolf:
sudo: cd: command not found
/home$
View 2 Replies
View Related
Oct 25, 2010
I recently upgraded from Lucid to Maverick, and I noticed that a new error message caused by a "cp" command call, including the hard links option. Fortunately, I kept the last Lucid kernel (2.6.32-25), so I could check the different behavior with booting successively on each kernel. Here are my configuration files:
On the server (192.168.1.2):
/etc/fstab :
UUID=... /mnt/Backup ext4 defaults,errors=remount-ro,relatime,async 0 2
/etc/exports :
[code]....
If I check permissions of /net/Backup/Folder2 from the client, I get :
owner = nobody (Create and Delete files), users (Access files), others (Access files)
cp -alR /net/Backup/Folder1/* /net/Backup/Folder2
- under kernel 2.6.32-25: no problem
- under kernel 2.6.35-22: all the subdirectories are created, but all empty; moreover, I get as many messages as number of files from the source:
"cp: cannot create the link ...: operation not allowed"
I can copy manually any file to /net/Backup/Folder2 from the client. Why the behavior has changed from kernel 2.6.32-25 to kernel 2.6.35-22 ? Should I modify the permissions or the way the mount is exported with options like "(no_)root_squash", "all_squash", or "anonuid", "anongid" ?
View 9 Replies
View Related
Nov 26, 2010
I'm using rhythmbox and a classic ipod. A couple of times I have managed to write podcasts to my ipod. I'm not sure how I did it but it doesn't last. I have tried lots of random things from forum posts. When I try to change permissions in nautilus they change back straight away. I have my name as owner and group. I have the Lynx Ubuntu OP.
View 9 Replies
View Related
Feb 2, 2010
Something has changed all my file permissions to read only and when I try and change them back it wont let me. Is there something I can do i Nautilus to correct it?
It even effects the waste basket-all the stuff in there is now read only and when I delete items I get a file operations window, which comes and then goes like its deleted them, but they re still in the waste basket, doesnt show an error message like it does if I try and move any other file.
View 9 Replies
View Related
Dec 23, 2010
I accidentally changed my user permission while setting up a new user account and am now unable to access the "system" on the panel to change things back. I've just spent hours setting everything up and downloading and hope that I don't have to go through all of that again.
View 5 Replies
View Related
Nov 25, 2010
the permissions for my home directory were accidentally changed from 'access files' to 'create and delete files', and I changed them back, but ever since then I am not able to change any preferences/settings at all. power management, themes, panels, emerald, anything. my user account is supposed to be the administrator, and all the user privliges are checked. how to get control of my computer back?
View 9 Replies
View Related
Jan 8, 2011
Do I need it in /etc/sudoers? It's there by default and I don't know why does root need sudo.
View 5 Replies
View Related
Oct 3, 2010
I logged in as root and was trying to add a user to sudoers, but then when I tried to save it said that the file was write protected and couldn't be saved. However, when I returned to look at the contents of the sudoers file, they were all done. The file is now empty.
1- How can I restore the contents of the default sudoers file. (I have FC12)
2- How can I add a user (no password) to the sudoers list without this happening again?
View 9 Replies
View Related
Mar 15, 2010
I have a problem with my external hdd, I mounted it manually and in the mount table it says ive got rw permissions. But when i try to change permissions it says:
chmod: changing permissions of `whatever': read-only filesystem.
This is my mount table:
[root@localhost ExtHDD]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
[code]....
View 6 Replies
View Related
Mar 6, 2011
1.sudo command runs command as root,is that our name should be mentioned in the sudoers file of root?i got the error like this-"sandyain is not in the sudoers file.This incident will be reported."so what is that mean?
View 4 Replies
View Related
Oct 4, 2010
How do I add a user in a sudoers file.
View 6 Replies
View Related
Aug 18, 2010
In my sudoers file, there are lines that begin with #, lines that begin with % and lines that begin with neither. The # is definitely being used to comment out lines, but what does the % do? Is it a comment marker too?
View 2 Replies
View Related
Sep 24, 2010
After adding what I thought were the correct entries in /etc/sudoers so I'd be able to run commands without needing to sudo them, I keep having to. My sudoers file entries look like this:
Code:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
user_me ALL=(ALL) ALL
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
user_me ALL=(ALL) ALL
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
user_me ALL=(ALL) NOPASSWD: ALL
I have also confirmed that I'm a member of the wheel group in /etc/group:
Code:
wheel:x:10:root,user_me
And yet, I still have to sudo to do pretty much anything.
View 7 Replies
View Related
Dec 10, 2010
I added the following line in /etc/sudoers file
<username> ALL=(ALL) NOPASSWD:ALL
after adding this if I run any command it is not asking for the password. Now I need to shutdown the remote machine with sudoers user.
View 6 Replies
View Related
Aug 9, 2010
ok how do I include my username in the sudoers list?
View 4 Replies
View Related
Jul 11, 2010
Recently I edited sudoers file and did typing error. Now neither I can do sudo nor change it.
Code:
sudo visudo -c
>>> sudoers file: syntax error, line 8 <<<
How I can get correct the sudoers file?
View 5 Replies
View Related
Mar 12, 2010
I need to install a package. For that I need root access. However the system says that I am not in sudoers file. When trying to edit one, it complains alike! How I am supposed to add myself to the sudoers file if I don't have the right to edit one? I have installed this system and only administrator. What can I do?
Edit: I have tried visudo already. It requires me to be in sudoers in the first place.
amarzaya@linux-debian-gnu:/$ sudo /usr/sbin/visudo
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for amarzaya:
amarzaya is not in the sudoers file. This incident will be reported.
amarzaya@linux-debian-gnu:/$
View 5 Replies
View Related
Jun 3, 2010
Relatively new to Linux, but I'm trying to grasp the proper way to modify the sudoers file. As an example, what would I have to modify in /etc/sudoers to allow a user (say 'user1' for the example) to be able to add/remove software through yum? I'm aware of the fact that I need to use visudo and how to use the vi editor. I've Googled this topic and while I've found a number of pages on the topic, I never see many examples.
View 5 Replies
View Related
Feb 11, 2011
This is the hard way to learn when you MUST use visudo. That's right. I did something stupid like:Quote:$ sudo vi /etc/sudoersand now have:Quote:
$ sudo
>>> /etc/sudoers: syntax error near line 79 <<<
sudo: parse error in /etc/sudoers near line 79
[code]....
View 3 Replies
View Related
Sep 7, 2010
Warning: Do not edit /etc/sudoers directly with an editor; Errors in syntax can cause annoyances (like rendering the root account unusable). You must use the visudo command to edit /etc/sudoers. In the previous section we added your user to the "wheel" group. To give users in the wheel group full root privileges when they precede a command with "sudo", uncomment the following line:
%wheelALL=(ALL) ALL
so i signed in as root and typed in visudo now i alreayd made the changes but how do i exit and save super+x doesnt seem to do it for me since im not using nano and not supposed to cause it causes errors
View 3 Replies
View Related