-2
votes
1answer
33 views

Ubuntu Server running Plesk subversion command only accessible to root user

I have a VPS through myhosting.com the VPS is running Ubuntu 12.04.5 LTS with Plesk 12.x when I log into my VPS with the root user and do svn help I get the standard reply telling me the basics of the ...
-1
votes
2answers
80 views

What user is the script run as after Carbon Copy Cloner ends scheduled task?

On Mac OS X I keep data on a local server mirrored with the same data on a remote server with a scheduled backup task done with Carbon Copy Cloner. After the backup is done a bash script is run as ...
0
votes
2answers
530 views

Linux bash: run script as a non-root user by a non-root user using PHP

I have a PHP script owned by "tom" (runs using PHP-FPM). "tom" wants to run the script /srv/helloworld.sh as another user called "jerry". "tom" has the access to run scripts on the server (so he can ...
2
votes
1answer
981 views

Linux- Permission denied?

I'm installing Neo4j server as a linux service, but when I install it, I get the following message: /sbin/insserv: Permission denied What is this? What should I do? I'm running everything with ...
1
vote
2answers
274 views

change user within bash script

I have a simple bash script which runs great as a regular user. When launched from postfix, it runs as nobody:nobody which prevents many commands from working. Is it possible for the script to ...
0
votes
2answers
115 views

Change ownership and permissions of file

Is it possible to change owner/group of a file AND permissions with 1 command? I tried: chmod user1:groupOfUser1=770 file.txt but it does not work.
0
votes
0answers
278 views

SELinux denies execute of script resulting in a complex looking custom policy

The heartbeat type polling tool nanny (part of Piranha / Linux Virtual Server / LVS / IPVS) is being denied access to my "sendprogram" scripts by SELinux. Setting the context alone is not sufficient. ...
1
vote
1answer
79 views

Linux execute permissions

-rw-r--r--. 1 myusername developers 169 May 17 09:01 build.sh Why is it I can execute the build.sh script from the command line if it does not have execute permissions but when crontab tries to ...
1
vote
4answers
202 views

A script that verifies that Apache (or any account) has proper permission to navigate to a directory

It seems that Apache needs at least read and execute permission to all the sub-directories of a path in order to serve the files in the directory. Does anyone have a script or one-liner that could ...
0
votes
2answers
214 views

What permissions should I give these files? [closed]

I have some files that nobody needs read access to and apache needs read and write access to. Should I do chown nobody.apache file chmod 460 file or chown apache.nobody file chmod 640 file or ...
4
votes
2answers
751 views

How can I change the umask for a user when he logs on to an alternate group?

I want the umask to be more permissive for users when they switch to a non-default group. Just to demonstrate what I mean: $ id uid=500(beamin) gid=500(beamin) groups=10(wheel) $ umask 0022 $ sg ...
2
votes
1answer
31 views

Strange behavior with execution permission

For exercise - I removed execute permission for others from /bin/pwd: $ chmod o-x /bin/pwd $ ls -l /bin/pwd -rwxr--r-- 1 root root 26568 Apr 28 2010 /bin/pwd and as logged as matt I cannot ...
2
votes
3answers
1k views

Copy a file's owner permissions to group permissions

How can I copy a file's user/owner permissions to it's group permissions? For example if the permissions are 755 I want them to become 775. Clarification: 755 -> 775 123 -> 113 abc -> aac Bonus if ...
2
votes
2answers
2k views

Permission Denied when using Sed

I am using Sed to find and replace a string in a file. This is the first time working with it so I maybe doing it wrong, I have a file thats owned by "root" called "test.properties" and I want to ...
1
vote
4answers
1k views

How I can tell grep to search in file that I have permission?

When I call cd / grep -r "some_str" . then I see lots of files printed on the screen and in the end of the line I see ": Permission denied". How I can tell the bash to search only in file that I ...
0
votes
1answer
987 views

“Permission denied” in web server (CentOS on Mediatemple)

I've made another post regarding gitolite that I've resolved already but this is beginning to aggravate me. I can see that my files have read permissions but my error log continues to produce ...
4
votes
1answer
667 views

Undoing chmod 777

Sometimes in desperation, to test if my problem is not the permission problem I do: sudo chmod -R 777 mydir/ In most cases it does not helps, and now I have two problems ;) Files inside mydir/ had ...
4
votes
6answers
3k views

Bash Script To Repair Directory and File Ownership

My client had me deploy some folders out to a bunch of home directories for his customer websites. I did this with a Bash script, but it ended up using the root account permissions. How do I make a ...
1
vote
1answer
491 views

Symbolic Link to folder in root

I have created an ftp account within a vhost and added a symbolic link to a folder situated in root e.g. [root@server myvhost]# pwd /home/myvhost [root@server myvhost]# ll ..... lrwxrwxrwx 1 myvhost ...