General :: Can't Set PWD Despite Having Sudo Permission Set

Mar 3, 2010

As user lukas, who is listed in 'sudoers' with the same rights as root (ie ALL=(ALL))

I can't cd 'into' dir /var/spool/cron:

As root i can cd into it no problem. As lukas, i get permission denied, and if I try 'sudo cd cron' I get an error saying command 'cd' is not recognised.

file permissions as follows -

View 7 Replies


ADVERTISEMENT

General :: Trying Sudo MV Command On File - Permission Denied

Jul 17, 2010

If I try the sudo mv command on the file listed below I get the error listed. I am confused. It is my file & I have permissions. Somehow a slew of files on my system are now showing this way. This seems to correspond when I ran rsync from my netbook to sync it up with my desktop where I am having a problem.

Potential Source ->
sudo rsync -av --delete --rsh=ssh joe@192.168.1.4:/media/Abyss/Memories/ /home/joe/Pictures/

Type of issue ->
mv: cannot remove `100_2259.jpg': Permission denied

joe@Tux-Box:/media/Abyss/Memories/2009/3-09$ stat 100_2259.jpg
File: `100_2259.jpg'
Size: 243012 Blocks: 480 IO Block: 4096 regular file
Device: 811h/2065dInode: 1312030 Links: 1
Access: (0777/-rwxrwxrwx) Uid: (1000/joe) Gid: (1000/joe)
Access: 2010-07-17 11:41:26.708020712 -0400
Modify: 2009-12-13 21:49:59.501938000 -0500
Change: 2009-12-24 05:54:02.854309200 -0500

View 7 Replies View Related

General :: Easy Way To Explicitly Deny User Sudo Permission?

Jun 8, 2011

I am attempting to configure my sudoers file, and have quite a few questions.If you can answer any/all of them, I would be grateful.

-Is there a way to set it up so that root gets notified if a user tries to use a command they are not allowed to?

-If something like this already exists on my system, how do I set it up/use it/ read root's messages?

-I see a lecture=always default exists, but can I customize this lecture?

-Is there an easy way to explicitly deny a user sudo permission?

-I see there is an ALL wildcard. Is there something similar to a NONE wildcard?

View 3 Replies View Related

General :: Change A File In Filestarter Using Sudo /etc/rsyslog.conf - Permission Denied

Aug 4, 2011

I Have been trying to change a file in filestarter using sudo /etc/rsyslog.conf. but am getting a permission denied message. How do I get into this file to change it ? Firestarter is working ok but for some reason it cannot open the system log. I Have found what amendments need to be made to get this to work but simply cannot get access to the file

View 2 Replies View Related

Ubuntu Security :: Sudo Permission Not Being Revoked?

Apr 1, 2011

I am using Ubuntu 10.04-alternate-amd64 for full disk encryption. After getting my updates which i get as soon as they are released. I am getting the issue temp root (sudo) password is not being revoked. After using any app that requires the use of sudo the permission for it does not get removed like it normally does.

I have tried logging out then back in, which usually removes the permission, this no longer works, also tried waiting and even after 1 hour permission still there. The only work around I have found is to use the terminal to execute the required programs then after closing terminal the temp permission is now removed like it should be. This issue has effected all of my systems and a friend of mine as well, (friend uses same distro).

To replicate issue:

1) Boot system.
2) Login.
3) Check for updates or any other app that uses root permission.
4) Logout
5) Login
6) Repeat step 3
7) App will not ask for permission it will use root permission automatically.

View 3 Replies View Related

Security :: SUDO Permission Setup On Particular Dir - Recursive

May 6, 2010

I am looking for a way to setup sudo access for a user, so that he can change permission of all files of the given dir.

eg:

By this user can change ownership of files which are on depth bellow to given dir (i.e /etc/userA-conf/), but while trying to change permission of /etc/userA-conf/../user-conf2 , getting error, user userA don;t have that permission.

Let me know what will be the right regex/pattern to achieve this.

In Solaris it's working fine, but I am trying it on Linux RHEL5.

View 3 Replies View Related

Programming :: Give Www-data Permission To Sudo?

Aug 29, 2010

How can I give www-data permission to use sudo? I used to assign permission to users to use sudo using KDE but don't know how to do it on a headless server.Basicly I have a web application running that wants to call a command that needs root privs. When it calls this command it's running as www-data. I guess it's not working as www-data is not allowed to use sudo. If it can use sudo I could for example...Code:echo "password" | sudo -S "some admin command here"I could be wrong but i'm petty sure I just need to give www-data permission to use sudo?

View 5 Replies View Related

Ubuntu :: Add User Permission To Use Sudo In Command Line?

Oct 20, 2010

I have a problem about user permission, I just destroy my user...So, I create a new one. But I can't have the permission to use "sudo" or to install program... So, I cannot do a lot of thing in my computer. The logical solution is to boot in failsafe mode and access to the root terminal, but, I don't know how to change the permission to allow me to use sudo.

View 5 Replies View Related

Slackware :: Sudo: Can't Open /etc/sudoers: Permission Denied

Jun 10, 2011

After install TexLive, sudo stop working. If I run sudo:

Quote:

sudo: can't open /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting

Edit: Hal and dbus is not working either, if i startx I don't have network manager or automatic mount of pen and disks.

View 10 Replies View Related

Ubuntu :: Nautilus Requires Root Permission Even Without Gksudo,sudo,etc

Aug 15, 2010

Every time I try to open Nautilus it requires root permission even if I don't use commands like gksudo.

I launch it from docky's bookmarks applet, requires root.

Use a command like "nautilus /home/harvey" it still requires root.

Adding the file browser launcher to docky doesn't even LAUNCH nautilus.

But launching file browser from gnome-panel works O_O.

But I never use gnome-panel, so I'd like to be able to launch it from docky and commands and stuff without root permission.

View 1 Replies View Related

Security :: Defaults For Sudo - Permission Denied And Script Fails

Mar 18, 2010

I have a CGI script that when called runs another script as a different user. Yet when the script does run I keep getting a permission denied in the logs and the script fails

In the sudoers file-
Defaults env_reset
www-data ALL=(charly) NOPASSWD=ALL

For the full question-
When looking at /etc/sudoers there is the defaults line that you can add things to. When doing a sudo -L so that I can see what I can put on that defaults line. Can an individual user have specific defaults? Ones that don't effect the rest of the people in /etc/sudoers?

View 1 Replies View Related

Ubuntu :: Permission Denied - Fail At Sudo /usr/lib/nx/nxsetup - Install - Due To File Is Missing

Feb 28, 2011

I am installing ubuntu to amazon EC2 by following the steps at [url] The installation works fine.

Then I want to gain Remote Desktop Access to Ubuntu, so I follow [url]

However, fail at sudo /usr/lib/nx/nxsetup --install due to this file is missing.

I then use putty, navigate into /usr/lib/nx to run command below.

wget [url]

But, it always come out with permission denied issue

I also try to upload the .tar.gz file via winscp to any of the possible directories.

All fail with permission denied issue.

Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 3

View 1 Replies View Related

General :: Sudo Cd /root Gives Sudo - Cd - Command Not Found

Jan 6, 2011

Kernel 2.6.21.5, Slackware 12.0

Code:

Code:

On the other hand

Code:

So, I do not understand why the notification "sudo: cd: command not found", considering cd is a bash built-in command.

View 3 Replies View Related

Ubuntu Installation :: "Permission Denied" For Sudo Operation / Why Is So?

Sep 30, 2010

A few days ago I tried to install a driver for a Brother printer (HL-5040) in terminal mode by issuing "sudo dpkg -i --force-all hl5040lpr-1.1.2-1.i386.deb" on my Ubuntu 9.10 PC.

During the process several error messages were displayed. All of them say "permission denied" to access a directory /etc/init.d/lpd. Consequently, the installation failed and Synaptic package manager does not work any more and becomes broken.

Questions: Why did I get "permission denied" as a su? How can I get around the problem so I can re-install the driver?

View 3 Replies View Related

General :: What's The Difference Between Sudo Su - And Sudo -i

Jun 19, 2011

It is my understanding that they do the same: they ask for my password (if I am allowed in /etc/sudoers), and give me a login shell as root.

Is there any difference between them?

sudo su -
sudo -i

Also, what's the difference between

sudo su
sudo -s

I think that they both ask for my password, and give me a shell with my old environment variables.

View 1 Replies View Related

General :: Use Of S - Permission And T - Permission?

Nov 9, 2010

explain me s-permissions and t-permissions i am using rhel5 and i dont know what is the use of s-permission and t-permission.please explain with suitable example if possible.

View 2 Replies View Related

Ubuntu :: Sudo Ifconfig Eth0 Down Vs Sudo /etc/init.d/networking Stop

Jun 10, 2010

explain the difference between these two commands. I'm currently reading about changing your mac address and both of these commands show up a lot. They sound like the same thing to me. Is one better than the other, or do you need to use both to change your mac address?

Code:
sudo ifconfig eth0 down
sudo /etc/init.d/networking stop

View 3 Replies View Related

Software :: Pam_start Error 26 \ Use Sudo Su And Add An Account To A Group What's Allowed To Use Sudo?

Jan 2, 2011

I have a problem when I want to use su I get this error:Code:su: pam_start: error 26I have googled it so I found this topic (http://www.linuxquestions.org/questi...r-26-a-615024/) but it didn't really help me. There was a reply on that topic and his question was what the output of this was:

Code:
ldd /usr/bin/passwd
and

[code]....

View 4 Replies View Related

Fedora Security :: Cannot Open /var/db/sudo After Sudo Package Upgrade?

Sep 16, 2010

A day ago I finally got around to upgrading the PackageKit installation that had been sitting for a week and a half, so I found a new upgrade for sudo available - the one that gives the sudoreplay command, I forget which version number it is exactly. When I try to use the sudo command I get this notice in my terminal:Code:Can't open /var/db/sudo/me/1: Permission deniedI didn't get it before. What do I have to do to make it open? I'm using SELinux in enforcing mode if that helps.

View 1 Replies View Related

Ubuntu :: Make Sudo Act More Like The Debian Sudo?

Jul 2, 2011

I have read a lot of questions from people wanting to take Debian (or some other distribution) and make its sudo command act more like the way Ubuntu's sudo does. I want to do the exact opposite, I want to make Ubuntu's sudo command act more like the sudo command from another distribution. ie I want there to be one root password

View 8 Replies View Related

Fedora :: Where SUDO File At / Add Myself As A SUDO'er?

Oct 11, 2009

Where is the SUDO file at, and remind me how do I add myself as a SUDO'er?

View 3 Replies View Related

Server :: Sudo - Command Can't Run By Sudo

Jun 18, 2010

I am having trouble running commands by using sudo. I configured visudo file with localuser ALL=(ALL) ALL but I can't run any command, it tells me command not found.

View 8 Replies View Related

Fedora Security :: Terminal Equivalent Of "sudo" Is It Still Sudo/KDEsudo

May 29, 2010

I am new to fedora (been using debian based distro's for the longest time). With the new release I decided to give FC13 (The kde 64 bit spin) a try. I told it to wipe my entire hdd and encrypt the partitions. The partition manager made a few LVM partitions which I assume are encrypted.

The problem I am having is that if I attempt to use an application that would normally need root access to run, I am not prompted to enter my root password. Instead, I am required to logout and log back in as root. Is there a way to make it so that FC13 will prompt me to enter in my root password so I do not need to log in and out? Or is there something Different I should have done during the install process? Also, what is the terminal equivalent of "sudo" in fedora, or is it still sudo/KDEsudo

I also have not used SE Linux before. Do I need to manually enforce the permissions for my applications and generate my own profiles for it, or is that done automatically?

View 14 Replies View Related

General :: How To Use Sudo In Fedora

Jul 5, 2010

When I type sudo [command] it prompts for my password and after I enter it it tells me that i'm not in the sudoers file. How do i fix this?

View 10 Replies View Related

General :: Sudo Sometimes Changes PATH And Not Others?

Jan 22, 2011

If I try "shutdown" as a normal user on Debian it give the "command not found" error. OK it's not in my PATH. But if I "sudo shutdown" it works. Somehow sudo seems to change my PATH.

Do the same in Slackware however and sudo makes no difference, I get "command not found" each time.

View 8 Replies View Related

General :: How To Get Name In Sudo File?

May 15, 2011

My OS is Linux Fedora 11.PC is IBM 1.8 GiB memory, Intel Duo E8500@3.1GHz.The modem I want to install is a USB stick from 'Cell C' the service provider.The code I got from the internet is for Ubuntu. I am new to Linux. When I type the code in at the Terminal, it tells me that Fdeb (my user login name) is not in the sudo file. How do i get my name in the sudo file?

View 2 Replies View Related

General :: How To Add SUDO Access

Jul 13, 2010

How do I give a regular user account sudo access?

I'm using CentOSv5 (essentially Red Hat Enterprise 5).

View 11 Replies View Related

General :: Sudo No Password

May 23, 2011

I have an old server running RHEL 5.5 and I normally just type sudo nothing else and I'm instantly root. I copied my sudoers file from here to a new server but it seems not to work cause I type sudo and it ask for usage. Is something else besides the sudoers file that prevents me from logging in with sudo only.

View 5 Replies View Related

General :: How To Get Sudo Password?

Apr 28, 2011

how to get sudo password? login not working for password

View 10 Replies View Related

General :: Symlink And Sudo Executable?

Jun 14, 2010

If I have the below sudoers entryusera ALL=(userb) NOPASSWD: /home/userc/bin/executable-fileusera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-fileWhen I log-on as usera and try running the below commands, it workssudo -u userb /home/userc/bin/executable-filebut NOT the one below.sudo -u userb /home/userc/bin/link-to-another-executable-fileSorry, user usera is not allowed to execute '/home/userc/bin/link-to-another-executable-file' as userb on hostname.

View 1 Replies View Related







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