Software :: Unable To Run 'su' And 'sudo' After Changing Permissions?

May 19, 2011

I'm running rhel6 64bit. Accidentally I ran % chmod -R 777 /etc and after that I have a problem to do 'su' or 'sudo'. When I did sudo it complained that /etc/sudoers has 777 while it should be 0440. I changed that and also restored right permission for:

-rw-r--r-- 1 root root 1966 May 19 13:41 /etc/passwd
-r-------- 1 root root 1161 May 19 13:42 /etc/shadow
-r--r----- 1 root root 3746 Apr 23 01:38 /etc/sudoers

Anyway it failed to 'su'. Then I restored back permissions on files in /etc/security and /etc/sysconfig. Still can't do 'su'. Note: I could login from console as root but can't 'su' or 'sudo'. when I do 'su' it gives error: Password: su: incorrect password

View 2 Replies


ADVERTISEMENT

General :: Changing File Permissions Works As Root But Not As Sudo

Nov 22, 2010

I have a really strange problem. I have a few files in a large directory that I want to make readable by everyone. So I try this:

sudo find readme* -not -perm -o+r -exec chmod +r {} ;

and get this:

sudo: unable to execute /usr/bin/find: Success

I don't know why it says Success, because the permissions were not changed. I verified by typing this:

find readme* -not -perm -o+r -exec ls -l {} ;

and get something like

-rw------- 1 root root 536871076 Nov 22 14:06 readme_20101122200429
-rw------- 1 root root 536871892 Nov 22 14:08 readme_20101122200642
-rw------- 1 root root 293458128 Nov 22 14:10 readme_20101122200859

as a last resort, I tried:

sudo chmod +r *

and got:

sudo: unable to execute /bin/chmod: Success

and again Success really means fail. So, I gave up and logged in as root and tried:

find readme* -not -perm -o+r -exec chmod +r {} ;

This time it worked. Why?

EDIT: /etc/sudoers looks like:

## Allow root to run any commands anywhere
root ALL=(ALL) ALL
##Me
user1 ALL=(ALL) ALL

View 2 Replies View Related

General :: RW Permissions On External HDD - Chmod: Changing Permissions Of `whatever': Read-only Filesystem

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

Ubuntu :: Change Permissions For File / Add These Lines Without Changing Permissions?

Oct 16, 2010

Finally I managed to install my printer/scanner drivers.The last thing I need to do is to add the following two lines to 40-libsane.rules (which is a read only file):# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes".How can I change permissions for this file or add these lines without changing permissions?

View 2 Replies View Related

General :: Change Folder Permissions Without Changing The Permissions Of The Files Within The Folder?

Aug 11, 2010

How do I change folder permissions without changing the permissions of the files within the folder?

View 6 Replies View Related

Ubuntu :: Sudo Permissions And Timeouts?

Feb 3, 2010

I want to make a script for something, but I'm worried the timeouts on sudo permissions (how you can't got more than 5/10 minutes between sudo commands before needing your password again). Basically, I don't want my script to be redundant and require overseeing for password inputs.

Code:
sudo echo Hello.
sleep 6000
sudo echo This is text. This shows the basis of the problem. I will need to enter my password twice.

Would allowing it to run uninterrupted be as easy as running this theoretical shell script his sudo to begin with?

View 1 Replies View Related

Ubuntu :: No Permissions/sudo In Shell?

May 22, 2010

Just added a new 250g internal-drive in my karmic box, all seems OK and I formatted the partition with Gparted as ext4 but now can't create folders. Unfortunately I don't seem to be able to use a bash shell either, if I type anything in I get no problems until I attempt sudo and then I'm unable to type in a password!

View 2 Replies View Related

Software :: Cannot Install Opera In Mepis 11 - No Sudo Permissions

Jan 6, 2011

I just upgraded to Mepis 11 alpha 2 and am using the gnome desktop. I downloaded the appropriate version of Opera. When I try to install it using dpkg -i, it wont allow it because I do not have permission in either "user" or "root" desktop. I tried to edit sudoers file but it it doesn't seem to work. I can't use sudo because I am not in sudoers file and I cannot edit sudoers file because I do not have sudo permission. When I am in root desktop, I still do not have permission even to read sudoers file. How do I install Opera?

View 14 Replies View Related

Slackware :: Warning - The Upgrade Of Sudo In - 64 -13.1 Modifies The Permissions On /var

Sep 15, 2010

The sudo upgrade of 2010-09-15 modified permissions on /var in my systems, both on 32 and 64 bit. (from 755 to 700) My subversion server stops working after the upgrade, you have to restore the old permissions by hand. I don't inspect how, but I've checked it few times...

View 5 Replies View Related

Ubuntu :: /dev/lp0 Permissions Keep Changing?

Aug 26, 2010

The problem is whenever we reboot the system the permissions of / dev/lp0 (line printer) is changing. So every time we are changing the / dev/lp0 permissions through root using chmod 777 /dev/lp0

Is there any smooth solution for this? Why the /dev/lp0 permissions are changed with every reboot?

View 4 Replies View Related

Ubuntu Installation :: Cannot Install Package - Permissions Error While Using Sudo

Mar 17, 2010

tl;dr - sudo make -> operation not permitted, sudo chown -R 777
* -> operation not permitted on some of the files

I am trying to install a library. Sudo make is getting permission denied on file 1, while using regular make I am getting permission denied on file 2. I have noticed some of the directories in the library are under nobody:nogroup. I tried chown and sudo chown, both didn't work. Sudo chown got permission errors, while chown didn't change ALL the files. (operation not permitted once again) Tried sudo su, and working from there, that also did not work. (permission once again). Using lsattr returned "lsattr: Inappropriate ioctl for device While reading flags on".

Code:
sudo chmod -R 777 *
chmod: changing permissions of `Makefile': Operation not permitted
chmod: changing permissions of `Makefile.am': Operation not permitted
chmod: changing permissions of `Makefile.in': Operation not permitted
chmod: changing permissions of `queue.c': Operation not permitted
chmod: changing permissions of `queue.h': Operation not permitted
chmod: changing permissions of `ucutil.h': Operation not permitted
Note the .libs folder not having write permission....

Code:
chmod -R 777 *
constantin@Nadfadfo:~/network_home/constantin/libraries/unicap/libunicap-0.9.8/common$ ls -la
total 68
drwxrwxrwx 4 constantin constantin 4096 2010-03-17 11:31 .
drwxrwxrwx 8 constantin constantin 4096 2010-03-17 11:31 ..
drwxrwxrwx 2 constantin constantin 4096 2010-03-17 11:31 .deps
drwxr-xr-x 2 nobody nogroup 4096 2010-03-17 11:31 .libs
-rwxrwxrwx 1 constantin constantin 15295 2010-03-17 11:31 Makefile
-rwxrwxrwx 1 constantin constantin 130 2010-01-17 08:17 Makefile.am
-rwxrwxrwx 1 constantin constantin 15262 2010-01-17 08:17 Makefile.in
-rwxrwxrwx 1 constantin constantin 6101 2010-01-17 02:49 queue.c
-rwxrwxrwx 1 constantin constantin 1667 2010-01-17 02:49 queue.h
-rwxrwxrwx 1 constantin constantin 125 2010-01-17 02:49 ucutil.h
System: Karmic Koala 64-bit

View 1 Replies View Related

Ubuntu :: Changing Default Permissions Of /dev/sdb

Jan 4, 2010

im looking to allow virtualbox raw disk access to /dev/sdb

currently if i

ls -l /dev/sdb
brw-rw---- 1 root disk 8,2010-01-04 17:00 /dev/sdb

now if i chmod this to 777 or use chown to change the owner this temporarily works but after a few moments it defaults back to its original permissions.

is there a way i can define the permission? i was thinking fstab but i can't have a mount point?

View 5 Replies View Related

General :: Changing File Permissions While Doing Ftp?

Sep 17, 2009

I am trying to automate ftp to transfer files from windows to Linux server automatically and my script looks like this .

@echo off
SET CUSTOM=/apps12i/oracle/KIRAN/apps/apps_st/appl/custom/12.0.0/reports/US
echo user oracle> ftpcmd.dat

[code]....

Any files we transfer through ftp from windows , their default permissions to be set 755 automatically . We are using Red Hat Enterprise Linux AS release 4 (Nahant Update 7) .

View 1 Replies View Related

Networking :: Changing The Permissions Of Eth1

Sep 14, 2009

I often run "gulp", a networking utility, to capture data from an instrument on "eth1". By default gulp must be run as root to have access to the ethernet port, and when I'm the only one running it, that's fine. But I need to let several other users to capture data and don't want to give them all sudo permissions for both gulp, and more importantly, 'chmod'. Is there anyway to change the permissions of eth1 to allow all users to open it and avoid sudo entirely? This is on a Red Hat/Fedora machine.

View 1 Replies View Related

Software :: Changing Permissions Of A Folder?

Oct 4, 2009

I've compiled my own code as root (long story why) anyway I now need to switch this to a normal user to compile. So I did a simple copy/paste (using gnome/debian lenny) to my home/user. I then logged in as used to see the folders with a padlock and permissions for root only. So I logged back in as root, change permissions to the used, check they were all ok, logged back in as user, and it still says owner root, even thought when I log in as root it shows user as owner.

View 6 Replies View Related

OpenSUSE Install :: /dev/null Changing Permissions At 2:20 AM

Jan 19, 2011

At 2:20AM /dev/null's permissions are changing to a restrictive setting that allows root access but not normal user access.

I am not seeing anything obvious in cron or /etc/permissions* or /etc/udev. And

# udevadm info --path=/dev/null
device path not found

View 8 Replies View Related

Ubuntu :: File Permissions Keep Changing On USB Drive

Jan 25, 2010

I use a USB drive to store most of my personal and work files, and I use it both at home and at work (two different machines, both running Ubuntu). The drive is encrypted, and is accessed using TrueCrypt (the entire drive is encrypted as a device rather than an encrypted file on the device). The TrueCrypt device is formatted as ext3/ext4.

I have a problem with certain file permissions being changed to read-only (rw-r--r--) after mounting the drive. This happens after I have used it on one computer, and then I mount it on the other. Even though I have been setting write permissions to all (chmod -R a+rw *) to get around this problem, when I mount on the other machine the write access is gone. I don't want to keep manually changing permissions; I would like the file permissions to stay as I set them.I'm using the same version of TrueCrypt at work and at home. I'm running Ubuntu 9.04 at work, and 9.10 at home.I do have different usernames on these computers, and I suspect that is the problem (but don't see why this would change file permissions for all users).

View 4 Replies View Related

Ubuntu :: Changing File And Ownership Permissions?

Jan 1, 2011

I installed Ubuntu from the alternate cd a few days ago to save space and resources on a very old laptop. (install command line, then add what I wanted) But I have struck an interesting problem with file permissions. Various programs like synaptic, leafpad, pcman, Banshee, all require I enter the root password to execute them (or sudo command from terminal). I want to change synaptic from root ownership to sudo and leafpad etc to execute without using the sudo command in terminal. I could get comments on the commands before I execute them in terminal and if I am introducing a security problem, as I am still learning bash. $ sudo chown sudo:sudo synaptic

I would still be asked for my sudo password before being able to open synaptic? As in standard Ubuntu instead of root password.$ sudo chmod 777 leafpad pcman Banshee All users could open these programs from the menu? I have my admin account and a general account which I use for everyday things like surfing the net and listening to music.

View 6 Replies View Related

Ubuntu :: Usb Stick Is Changing File Permissions?

Apr 8, 2011

I have two computers (one at work, one laptop) that I use daily. Both are running Ubuntu 10.04. I frequently use a usb stick to transfer files from one to the other. Somehow, every time I do this, all files get turned into executables (as if I did a chmod a+x on them...)

This happens every time I use the usb stick. I've reformatted the stick, but still this problem persists... anyone have any ideas on what is going on? It is really getting annoying to have to zip up folders so this doesn't happen...

View 7 Replies View Related

Hardware :: Changing Permissions On A Hard Drive?

May 13, 2009

I have four internal harddrives on my system. On the first HD i've installed Debian 5.0 AMD. I'm trying to write to my other HD to backup my files,but i get a message that this HD doesn't have permision to be writen to. How do i change the permission for Harddrives.

View 3 Replies View Related

General :: Changing File Permissions And Authorizations

Jan 4, 2010

I first installed linux as ubuntu version 9.04 straight off of a Computer Active CD and liked it so started to delve into file permissions and authorisations, simple stuff I suppose just so I could feel my way around things for a while. Using the built in Ubuntu software centre I downloaded and installed a prog which handles authorisations and I found that very helpful but then through the update manager I installed the latest distribution update (9.10) and now find that the authorisation software only lists a couple of things that I can get to and consequently every time I mount one of my hard disks I'm asked for my admin password even though I am logged in as administrator which is a hassle,

a small one but there all the same, as a newbie I realise it must be me not understanding something but I just dont know what, also in the previous version right clicking on the logging out panel gave you an option to remove the 60 second shutdown or restart delay and that has disappeared in the new version, again its really only just a nuisance thing but I find that sorting out this sort of thing will help me to understand the system

View 5 Replies View Related

Server :: Changing Permissions On NFS Mounted Directory?

Apr 19, 2011

I have a server running RHEL6 and a virtual machine also running RHEL6. I created a directory /home/data on the server and another on the VM. When I mount the host directory on the VM, I am not able to change the ownership/permissions through the VM no matter what. The ownership is set to "nobody" and I can't even change it to root.

View 4 Replies View Related

Fedora :: Changing Ownership Group Permissions Failing?

Jan 16, 2010

just trying to learn linux here and have some comfusing moments.it is my understanding that if you own directories and files you maychange the group, ownership, and permissions on all of these as you desire.however, in my case I cannot make any changes in my setup on group, ownershipor permissions on any of my files or directories.get error message <operation not permitted>. I know as root you ar supposed tobe able to do anything you desire, however in my case I can go in as root andtry the same commands with the same results. it is as if I am locked out ofsystem as far as any changes are concerned.on my jump drive I have:

total 83832
drwxr-xr-x 26 jevans root 16384 1969-12-31 19:00 .
drwxrwxr-x 9 jevans jevans 4096 2010-01-15 12:51 ..

[code]...

View 14 Replies View Related

OpenSUSE Hardware :: Changing Permissions From Root To User

Jun 6, 2010

I recently got a new external drive and backed all my files up on the new external: movies, music, docs, etc. Now all my files have permission rights to the root only. I was able to change this by open up nautilis from a terminal in root and change the permission on the whole drive to my current user so I can access the files, copy & delete the files. I wanted to change some music file information in Kynamo this morning and was not able to since all the individual files still belong to the root. How can I change this permission issue without having to change each individual file?

View 8 Replies View Related

Ubuntu :: Directory Automatically Changing File Permissions

Jul 12, 2010

Is there a way to have a directory automatically change the permissions of a file that is written to it? I have a program which saves files to a directory, and gives those files read-only permissions to members in the group. This is a problem, because other users of my computer need to be able to edit these files. The directory itself has rw permissions for group members.

I guess what I am looking for is a way for the directory permissions to "override" the permissions the program is trying to save the files as. For example, if the directory has "rw" permissions for the group, then any file saved to it will automatically get the same permissions, regardless of what the program writing the file is trying to do.

View 3 Replies View Related

Ubuntu :: Changing Icon And Setting User Permissions?

Oct 29, 2010

I tried to place a mono icon in usr/icons/etc but I didn't have the permission to do so. I tried to change my user profile to Admin, thinking I could go back to custom, but that hasn't and it isn't allowing me to go back to my previous setting.

Within minutes of being an Admin user I noticed I couldn't even unmount something. I really need to figure out how to change my profile back to default.

After that has been dealt with, I would like some guidance on how to gain root access to put my icon where it needs to be.

View 1 Replies View Related

Ubuntu :: Server Not Accessible - Changing Permissions On Folders?

Jan 3, 2011

We have a development server not accessible to the public used for testing which was setup for us. When attempting to have my PHP scripts upload an image to a folder, I have to CHMOD the folder to 777. Ideally, when a folder is created it has permissions set to 755 - I want to be able to upload to them. Is there a way to change permissions to allow the PHP scripts that run to be able to write to a folder? I know it has something to do with owner or group, but I don't know where to start.

View 2 Replies View Related

Ubuntu :: Changing Sudoers Permissions - On A Live System?

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

General :: Changing Permissions To Allow Virtual Box To Start Without Error?

Jan 15, 2010

I installed Sun's virtual box 3.1 under Ubuntu 9.04. It worked flawlessly. I upgraded to to 9.10 and know I get a kernel error. rc=-1908 Now I cannot get Windows to load.

View 2 Replies View Related

Software :: Track Who Is Changing Permissions Of A Specific Directory?

Apr 30, 2010

Anyone know a way to track who is changing permissions of a specific directory?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved