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


ADVERTISEMENT

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 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

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 View Related

Ubuntu :: How To Use Sudo In A Shell Script

Apr 8, 2011

I have a bash script like belows: wmctrl -a synaptic || sudo synaptic and I bind a short key S-y to that script.

it used to work well before. but today I found it didn't work. the application of synaptic didn't start. and if I delete the sudo thing, the synaptic will start. but in this case I can't change anything.

View 1 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

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 :: Sudo For Www User To Run Root Shell Script Via Browser?

Sep 7, 2010

I need sudo for www (apache) user to run a shell script('ip.sh' contains iptables rules) from cgi-bin directory via browser using a per script. I edit sudoers( www ALL=(ALL) NOPASSWD: ALL ),but when run the bellow command that's with err:

# sudo -u www sh /srv/www/cgi-bin/ip.sh

iptables v1.4.4: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded. And:

# ls -al ip.sh
-rwxr-xr-x 1 root root 243 Sep 7 14:18 ip.sh

I edit sudoers so

'www ALL=(ALL) NOPASSWD: /srv/www/cgi-bin/ip.sh,/usr/sbin/iptables' too. but it doesn't work too. how can I execute this script via browser ?

View 14 Replies View Related

Software :: Pass To Shell Environment As Regular User / Will It Apply To Builds Ran Under Sudo?

Jan 17, 2011

If I pass to my shell environment as a regular user will it apply to builds ran under sudo?I posted a thread similar to this regarding a build with TOR; however, this is applicable to all programs.

View 6 Replies View Related

General :: Executing Shell Script With 654 Permissions Inside Another One

Apr 22, 2010

I have this scenario, where in I'm calling a shell script inside another shell script. The only criteria here is that the embedded script will have 654 permissions and the master script should be able to execute this embedded script. The sample code is given below:

#!/usr/bin/ksh
maindir=/usr/home01/temp/dir
bindir=${maindir}/batch/bin
${bindir}/test.ksh -d ${dblogin} -i ${datadir} -r ${filedt} > ${tmp_log}

The test.ksh which has 654 permissions is called by the main.ksh script and when I try to run it using ./main.ksh, it fails with the error "Execute permissions denied."

View 2 Replies View Related

General :: Executing Shell Script - Setting Permissions And Providing Path

Jan 4, 2011

I've been looking around the net for executing a shell script. My basic understanding is that after setting executable permissions and providing a path (#!/bin/sh) in the first line of the script, I can type ./myscript to execute instead of sh myscript. This is not working for me. I can run "sh myscript" but not "./myscript" even though I know for sure I have across the board execute permission and my sh path is correct. I'm working on a redhat linux station.

View 6 Replies View Related

General :: Recreate A User With/without Impacting Existing Filesystem/permissions/shell?

Jun 1, 2010

I am trying to run a cron job as an oracle user. I put the user in the cron.allow file but it still won't run. Other users are able to run a cron job though. I think it's the way the oracle user was created and I wanted to recreate it. However it owns a lot of other file systems as well as the database. Is there a way to recreate or reset the oracle account without impacting what is currently in place?

View 1 Replies View Related

OpenSUSE Install :: Revert The Changes Or Change The Permissions Again To Root:root Or Make Sudo Work

Aug 10, 2011

Accidentally I changed the ownership of all the directories under / to my own instead of root:root. Now I am unable to use sudo and many bad things are happening. Is there a way to revert the changes or change the permissions again to root:root or make sudo work ?

View 3 Replies View Related

Programming :: Sudo In Shell Script \ Ask For The Password Then Execute The Script At Background And Get Back To Menu?

May 27, 2011

Whats wrong with this line?Code:sudo -u user /usr/bin/nohup sh /home/user/somescript.sh &This should ask for the password then execute the script at background and get back to menu

View 8 Replies View Related

CentOS 5 :: Call Nautilus File Browser With Root Permissions - "sudo Nautilus" Does Not Work

Feb 12, 2011

How to call Nautilus file browser with root permissions? "sudo nautilus" does not work. Under Ubuntu there is a command:

"gksu nautilus"

but this does not work in CentOS either.

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

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 :: 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

Ubuntu :: Permissions For Rsync And BackinTime - Setup 2nd HD With Correct Permissions?

May 31, 2011

Problem: permissions for rsync and BackinTime. Setup: Ubuntu 11.04, Two internal HD, #1=main, single boot, #2=backup drive. Question: How do I set up my 2nd HD with correct permissions? Background: I had previously a dual boot XP+10.04 with a 2nd HD formatted as NTFS. With this I was able to use my rsync and backintime to my 2nd HD with no issue. My new set up is EXT4 on both HD.

(I even tried to reformat my 2nd HD as NTFS, but that didnt fix the issue) I followed [URL] to mount the 2nd HD and get permissions. But now when I run backintime i get this error: [E] Error: rsync: opendir "/home/myhome/.ssh" failed: Permission denied (13) I did my requisite reading for a newbie, and am stuck. I ran backintime as root, and it backed up ok. How do I run my user version of backintime? (i.e. How do I fix the permission issue?)

View 9 Replies View Related

Ubuntu :: Reset Apache 2 Permissions To Default Permissions?

Mar 16, 2010

Is it possible to reset apache 2 permissions to default permissions I'm using Ubuntu 9.10 command line server, would webmin give me this access ?

View 1 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

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

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

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

Ubuntu :: Using 10.04-server 64bit AMD With Fluxbox - Matlab In A Shell The Shell Does Not Display Characters Anymore

Jul 26, 2010

I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?

View 1 Replies View Related







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