Ubuntu :: Bash Sudo Scripts Fail To Work After Install Of 10.04

Aug 4, 2010

I had some bash scripts on Ubuntu 09.10 (mint version) that fail to work on Ubuntu 10.04. The line that fails is the following:

Code: # cat file_with_my-password.txt > sudo -S something cat: invalid option -- 'S' Try `cat --help' for more information. In my case "something" mounts some filesystems (that fail to load from fstab - bios "fake" raid 10), but I get the same error for any sudo command. It is the same script that used to work under 09.04 :-/

View 2 Replies


ADVERTISEMENT

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

Ubuntu :: Install Boost Library - Sudo Apt-get Libboost Didn't Work

Apr 9, 2011

Trying to install e4rat that was on LifeHacker on Friday and have zero idea what I am doing. I have the e4rat extracted to a directory in /usr/local/src The README says that there are dependencies including boost library components. I am fine installing the whole boost library but sudo apt-get install libboost* did not work.

[Code]...

I tried to bang around a little to try to learn something with this but can't get any further.

View 5 Replies View Related

Ubuntu :: No Bash Completion With Sudo?

Apr 29, 2010

Just installed 10.04 64bit and in gnome-terminal i have no bash completion when sudo is used.For example:apt- gives apt-getbut sudo apt- does nothing, i get no suggestions from the terminal.

View 6 Replies View Related

Ubuntu :: Typed "sudo Apt-get Install Zlib" But It Doesn't Work?

Jul 10, 2010

I have to install zlib for running ./configure.I typed "sudo apt-get install zlib" but it doesn't work...Quote:configure: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping

View 8 Replies View Related

General :: Bash Script Syntax Fail As Root?

Apr 12, 2011

I'm scratching my head over a very simple netcat-based heartbeat monitoring script i wrote.

here we go:
Code:
echo `date --utc "+%Y-%m-%d %H:%M:%SZ"` script started

[code]...

View 6 Replies View Related

Programming :: SU And Sudo Within Bash Script

Oct 27, 2010

I'm working on a script which handles disaster recovery for a system I'm developing. Part of the script will also be used for initial setup. It needs to require as little user interaction as possible. It also needs to be run as root during most of the process. The problem is that there comes a point where some of the software can't be compiled or installed as root. So root needs to su to a regular user who then has to sudo in order to compile & install the aforementioned software. After all this, the script needs to revert to it's original state, running as root. I've never encountered a situation where root had to su to a normal user in order to sudo as root.

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

Fedora :: Run (not Run In Terminal) Bash Script With Sudo In It?

Jul 6, 2010

I have written a tiny script which switches between 2 CPU frequency throttling governors. Now I need to assign it to a shorcut key though "Preferences->Keyboard Shortcuts".

Here is the script:

Code:

#!/bin/bash
if [ `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor` = 'ondemand' ]
then

[code]....

As you can see this script involves sudo. I know that usually running commands with sudo requires "Run in Terminal" option for a shortcut, but in "Keyboard Shortcuts->Add" there is no option to run command in terminal. When I double click on the script and choose "Run in Terminal", then it functions as it should. How can I make this script execute by doing "Run" and not "Run in Termnal"?

View 2 Replies View Related

General :: Sudo Apt-Get Update And Bash Script

Aug 9, 2011

If I call a bash script with sudo, for example:
sudo bash script.sh
Do I still have to use sudo inside the script in cases like this:
sudo apt-get update

View 2 Replies View Related

Ubuntu :: Creating A Text File To Start Up Sudo Bash Without Going To The Terminal?

Feb 26, 2011

I just set up apache on my PC and I cant change the permissions by right clicking because "I'm not the owner" and instead of using the chmod command on every file that I would like to edit I would just like to write a script on a text file, save it to my desktop so all I have to do is double click on it and boom I can edit all my files, etc.

View 2 Replies View Related

Ubuntu :: Live CD 10.10 Wireless Fail To Work

Dec 28, 2010

With Ubuntu 10.10 live cd Lan and Wireless work fine but when installed on Hardrive Lan and wireless fail to work.

View 2 Replies View Related

Ubuntu Installation :: Software Centre Doesn't Work - Error "sudo Apt-get Install Vlc Vlc-plugin-pulse Mozilla-plugin-vlc"

Jan 31, 2011

I have just installed the newest version of ubuntu (10.10 the maverick meerkat) and im struggling installing any programs, wine and vlc arnt appearing on synaptic package manager and anything i try to do in either the command promt or ubuntu software centre doesnt work either. On the command promt when i follow the commands as seen on various tutourials the command promt comes back with an error. VLC example given below.

[Code]...

View 5 Replies View Related

Programming :: Bash Scripting With Sudo / Password Prompt And Accepting User Input?

Jul 30, 2011

I'm creating a bash script to do some tasks for me. I would like the script to be run at a set time of everyday. My first question is if it is possible that if one of the commands in the script requires sudo, is there a way to get around it with out making sudo not require a password. Such as, is there a way to include the password in the script? If that is the case, I can always just set the file as read only by sudo. I've been looking for a way to do this, with no success. if I have a command that wants input, how do I give it to the program. For example, if I want to make a zip file that is encrypted, the command would go as:

Code:

zip -r example * -e

now how would I get the script to insert my wanted password.

View 14 Replies View Related

General :: Restarting Web Server Apache2 Fail - Error Log "sudo Apache2ctl Configtest" Said "syntax Ok"

Jun 12, 2009

I was stupidly trying to setup apache for virtual hosts using two different tutorials and something got mucked up along the way. Apache will now not start and I just need a some help fixing it. My error logs show nothing and running "sudo apache2ctl configtest" said "syntax ok".

View 3 Replies View Related

Ubuntu :: Administration Functions And Automatic Update Fail To Work?

Mar 27, 2010

I am using Ubuntu 8.04. Most of my Administration functions have stopped working. If I click on Hardware Drivers, Hardware Testing, Log In Window, Software Sources, Synaptic Package Manager, and Windows Wireless Drivers my pointer turns into the timer wheel, so I know it is working, but then it just disappears and nothing happens. When I click on Update Manager my computer freezes. If I try to update through the red Updates Available arrow at the top of my screen my computer freezes. I can update through terminal but the red arrow never goes away. I also have 17 updates that won't update. I have tried them one at a time through terminal but they just freeze the computer. The only way to unfreeze it is to shut the computer down.

View 4 Replies View Related

Ubuntu :: Sudo Apt-get -f Doesnt Work?

Jan 9, 2011

i'm havng issues

Code:
bahie@bahie-laptop:~$ sudo apt-get install screenlets python-rsvg
[sudo] password for bahie:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-rsvg is already the newest version.

[Code]...

View 7 Replies View Related

Ubuntu :: Su Command Won't Work, But Sudo Will?

Oct 16, 2010

I was attempting to install the fglrx driver on my new ubuntu insallation, following a guide I found from google. At one point it says I need to login as super user, so I tried and no matter how many times I try it just keeps saying authentication failed. I even tried typing in my password with 1 finger, multiple times, every single time, authentication failed. So I decided to try the sudo command with fdisk -l, worked flawlessly. Tried the su command again, authentication failed, I have no idea what in heck is causing this but it just won't stop happening.

View 1 Replies View Related

Debian :: Apt, Aptitude And Other Package Managers Fail To Work

Jun 27, 2011

I had debian squeeze on my personal computer at home, 3 days ago i've upgraded it to the debian testing. last day i've installed virtualbox which i've gotten from virtualbox.org . today non of package managers work. an example of installing sumthin new with apt:

root@fairyland:/home/timmy# apt-get install clamav
Reading package lists... Done
Segmentation faulty tree... 50%
root@fairyland:/home/timmy#

also synaptic can't be started. i've run apt-get clean and removed /var/lib/apt/list i also tried apt-get update but these don't work sum useful info:

root@fairyland:/home/timmy# tail -n 40 /var/log/dpkg.log
2011-06-26 11:58:07 status half-installed virtualbox-ose 3.2.12-dfsg-1
2011-06-26 11:58:07 status config-files virtualbox-ose 3.2.12-dfsg-1

[code]....

just don't tell me i've to refresh its base, shit i hate to do this, i'd never done that about debian, this is one of the reasons i luv debian.

View 3 Replies View Related

Ubuntu :: GCC-4.x Dosent Work \ When Type In Sudo Apt-get Gcc-4.x This Happens?

Jul 3, 2011

when i type in sudo apt-get gcc-4.x this happensE: Invalid Operation gcc

View 2 Replies View Related

General :: Ubuntu / Sudo Also Doesn't Work

Jun 30, 2011

I have ubuntu server 8.x which works Ok but the other day I changed the owner of some files "the directory /etc" from root me. Now a lot commands do not work like reboot and such. So I tried to put ownership back to root and I can't. I say I dont have proper privilege. Sudo also doesn't work. I conect to the server using ssh with putty. What could I do to fix the problem? Update to the new version? This server has been working really well for a few years. The reason I changed the owner of the directory to myself is so I could edit some config files from my windows machine using a FTP client like WinSCP.

View 3 Replies View Related

OpenSUSE :: Vsftp Dose Not Work In Machine - Fail To Start

May 24, 2011

vsftp dose not work in my machine. I try to restart vsftp by command

Code: sudo /etc/init.d/vsftpd restart but it failed:

Code: Shutting down vsftpd done Starting vsftpd startproc: exit status of parent of /usr/sbin/vsftpd: 1 failed

View 9 Replies View Related

Ubuntu :: Getting Keebox W150nu To Work With 11.04 - Sudo Password

May 9, 2011

I'm a totally new Linxu/Ubuntu user and terrified of command prompt/terminal. But I'm trying to get my Keebox W150nu to work with 11.04 and following Chili's suggestion on doing so, but ran into an early problem:

robert@lawsonbox:~$ ndiswrapper -1
The program 'ndiswrapper' is currently not installed. You can install it by typing:
sudo apt-get install ndiswrapper-common
robert@lawsonbox:~$ "sudo apt-get install ndiswrapper-common"
[sudo] password for robert:

At that last line I am stumped. I can't input anything, no matter what key I press nothing is showing up there. If I knew the password I wouldn't be able to put it in! Do I hit an F key or what at this stage?

View 9 Replies View Related

Ubuntu :: 11.04 "bash: Sudo: No Such File Or Directory"?

Jul 9, 2011

This is the same with git. I'm not sure if any other commands are like this, but I know that both of those commands are installed.

View 9 Replies View Related

Debian :: Sudo Tab Autocomplete Does Not Work

Jun 10, 2011

When I use sudo, command does not auto-complete with 'tab'. Perhaps its some sort of security measure? I'd like to turn it off, because its just annoying. Older versions of debian didn't have such problem. Using debian_testing_amd64.

View 4 Replies View Related

Ubuntu Installation :: Error Getting Sudo Yum Update To Work / Resolve This?

Jul 12, 2010

I'm having a problem with this command: sudo yum update
I get the error: "Loaded plugins: presto refresh - packagekit
error:no such table: packages.

I created a group using vi /etc/sudoers
saved it using :wq!

but can't get it to work.

View 3 Replies View Related

Fedora Hardware :: Sudo Does Not Work With Fingerprint (SU Still Do)

Jan 20, 2010

Since yesterday my sudo doesn't work with my fingerprintreader anymore. su and GDM still do. sudo just asks me for the password instead of asking for a finger-swipe. AFAIR I changed nothing, but I accidentally forwarded the USB-Port on which the scanner is connected to VMware. I disconnected it, but maybe there could be the problem.
Fedora 12 x64, Thinkpad T61 integrated Fingerreader.

View 4 Replies View Related

General :: Sudo Command Doesn't Work

Oct 17, 2010

I want to install some software using sudo apt-get command,but it dosen't work.(my network works well) how to handle it? below is the output of terminal:

@ubuntu:~/Downloads$ sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4
Reading package lists... Done
Building dependency tree

[Code].....

View 4 Replies View Related

Ubuntu Security :: After Booting Up From The Restored Filesystem - Sudo Would No Longer Work

May 28, 2010

I'm having some trouble using sudo - it did work fine, but now when I try to use it, I have the following error:

I understand that I have to modify /etc/sudoers but need to have root access to do this. I am using a bootable USB (lucid) with persistent changes and am unable to login as root, because I don't know the default root password, and am unable to use sudo to change it.

The problem occurred after I had some corruption to the casper file system, so I booted into Windows, moved the casper-rw file to another location on my flashdrive, and used a 1GB backup filesystem to repair the corrupt one using fsck.

After booting up from the restored filesystem, sudo would no longer work.

View 9 Replies View Related

Server :: Frequency Scaling Not Working - Out Of 11 Steps Can Change To Only 2 Frequencies And Rest Fail To Work

Apr 23, 2011

I am using Intel Xeon X 3440 processor. The processor has 11 frequency steps to chose from. I have used cpufreq-selector for choosing a frequency and it worked fine. But, all of a sudden it stops working out of the 11 steps i can change to only 2 frequencies and rest fail to work. I am clueless as to why it stopped working suddenly.

View 8 Replies View Related







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