1
vote
0answers
42 views

I sudo'd a bash script, full of sudo apt-get install applicationname commands, and now my programs won't run

I sudo'd a bash script, full of sudo apt-get install applicationname commands, and now my programs won't run, unless they are ran as sudo (BAD IDEA!) How do I fix this issue?
0
votes
1answer
34 views

Script Not Running Properly On Server

I am having an issue with my webserver. I am testing it out on a new kernel build and it seems as if I can't get one certain part running on it. All of my scripts work except this one. Every file ...
0
votes
0answers
31 views

Permissions when running second level script

Evening Everyone, I have 1 bash script that starts the program Motion (some may be familiar with). Motion links to a script in the motion.conf upon picture save or file save to a perl script that ...
0
votes
1answer
35 views

don't have permission or doesn't exist

I'm trying to configure an Oculus rift and I have a configuration script that needs to be executed: GLADOS@deathbox:~/Desktop/OculusSDK/Tools/OculusConfigUtil$ ./OculusConfigUtil_i386 bash: ...
1
vote
1answer
229 views

sed “Permission denied” and “No such file or directory” errors while building Clockwordmod

Whenever I execute the command build/tools/device/mkvendor.sh samsung_aegis2vzw /your/path/to/the/boot.img I get this as the output build/tools/device/mkvendor.sh: line 83: /sedcommand: ...
0
votes
1answer
72 views

Permission error trying this backup script

I am trying this Backup Shell Script from the server guide. Granted it's for my desktop running Xubuntu 14.04. The NFS is mounted and accessible. The script has been created and edited with the ...
2
votes
1answer
56 views

How to refresh privileges on a script?

I have an script that modify files and group permissions. But it doesn't bring effects 'till I close the session and open a new one. Instructions where permissions are changed: sudo groupadd ...
0
votes
1answer
36 views

run all command inside script with typing the password one time

i want to write script inside the script i will do many commands that require to be root like sudo apt-get update sudo apt-get upgrade sudo apt-get install eclipse but i want to write the password ...
-1
votes
1answer
73 views

Objective: understanding File permissions

I want to write a shell script that takes two arguments: username(usr) and filename(fname), then resolve and show permissions of the given user on the given file.
2
votes
1answer
577 views

“Can't open” an /opt file

This is my first post. I wanted to ask for any idea so to solve my problem. I am using Ubuntu 12.04 LTS, and my purpose is to use OpenFoam CFD software. I am trying to execute an script called Allrun ...
0
votes
1answer
163 views

run a script as non-root user

I want to run a script say some_script.sh(that requires root permissions, contains some sudo do something in a for loop) as non-root user. I have a script as shown below. I want to run this script as ...
3
votes
1answer
371 views

Why is a group writable directory considered unsafe?

More specifically, why does libslack's daemon consider files that are being executed in a group writable directory to be "unsafe"? If you can give me an explanation of why group writable directories ...
1
vote
1answer
2k views

Executing a script as another user still cause some permission trouble

I have to execute this script with PHP. The user www-data can't do it, so I modified the sudoers file: www-data ALL=(user2) NOPASSWD: /home/user2/bin/test.sh The script is executed in php with this ...
1
vote
2answers
5k views

Why can't I write to a file even after 777 permission?

On my ubuntu server I have Apache and PHP and all that nessory stuffs.. but when I run a php file <?php ...
0
votes
4answers
2k views

php script not executed by crontab

I have setup a cron to execute one of my php scripts. But the problem is the php script is not being executed at all not even partially. Here is the cron I have set up 45 23 * * * /usr/bin/php -q ...
0
votes
1answer
79 views

Unrar: Resulting files vanishing

Ok, so I have a directory which contains a whole load of folders containing RAR files, which I'd like to use a script to recursively unrar. The script I have seems to work (extracting the resulting ...
2
votes
1answer
640 views

Script to change permission on content, and move files to other folder

I have a program that downloads some files. I want those files to automatically change permissions to 755, and get moved to another folder on my system. I want this to autorun every hour. Is this ...
0
votes
1answer
407 views

How can I run PHP scripts without prefixing my scripts with sudo?

I'd like to be able to run PHP scripts without needing to use sudo in every command. My user is not root obviously. How can I accomplish this feat? I'm new to Linux, and I have a little knowledge ...
1
vote
2answers
455 views

User Permissions

Is there any way with which, using shell scripts, I can execute a program as another user, in a uniquely(randomly) named directory, where the user has rwx access to all the files in that directory, ...
27
votes
3answers
84k views

'chmod u+x' versus 'chmod +x'

What is the difference between chmod u+x and just chmod +x? I have seen a ton of tutorials that say to use u+x to make scripts executable. However, the u is not mentioned in the chmod help or ...
10
votes
2answers
282 views

How can I preserve the executable bit on a file that is synchronized by Ubuntu One?

A script I am working on is in a folder that is synchronized by Ubuntu One. Every time I edit it from another computer, it looses its executable bit and I must manually reapply chmod +x. How can I ...