Instead of /home/www/html I used /home/www/ for the document root.
Now I wanted to make a file to test if the server worked, so I tried (while in the /home/www/ folder):
I've looked at the permission settings for the www folder, however I can't find anything unusual, settings for this folder are currently: drwxrwxr-x, should be sufficient right?
Is it because of the apache server that I cannot create files in this folder? I have solved the problem by making the file somewhere else and then moving it to the www folder, but that is quite cumbersome. Any way to solve this?
Last edited by Scott; 01-25-2011 at 11:31 AM..
Reason: Code tags
Ah...its because the local shell is doing the redirect, and although the "sudo cat" is running as root, the redirect is being done by the shell...
Try:
Last edited by citaylor; 01-25-2011 at 11:38 AM..
Reason: I was talking rubbish
I have a script that checks if the script has been ran with sudo.
If the script is not ran as sudo, the current script is being executed with exec sudo bash.
You are asked for a password, you type in the password, success. Everything is perfect - the commands inside the script are ran as sudo.... (1 Reply)
Hi All,
i have two accounts with acl permissions. I need to provide read access to both users. for one user s109552
"cd" is not working.
drwxrws---+ 8 cvsadmin reto 1024 Aug 23 2011 reto
su5sr117# su - s109553
$ bash
bash-3.2$ cd /rep/reto
bash-3.2$ pwd <-------- it... (2 Replies)
I am using korn shell
When I type in Telnet on cmd line, I get message
"cannot execute"
How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there
Thanks (1 Reply)
my file permissions are -rwxrwxrwx for runInstall file
and while giving " sudo bash runInstall.sh " then i am getting error " permission denied"
now i don't see any reasonable answer for that please suggest what should i do?
:eek:
got to start DBConnection practice with oracle database and... (4 Replies)
I'm sure this question comes up a lot, but I'm particularly confused in this situation.
I can run my program once, just fine. However, if I try to run it again without recompiling, bash refuses to give me permission. I have a small idea why, but I don't think think I'm right.
Here's what I'm... (1 Reply)
I would like to copy data from local mechine to cluster. Basically, I typed
scp -r DVD/ acount@cluster:/
it shows Permission denied.
Could anyone please give me a clue to write permission on cluster, please?
The poperty of where on cluster I'd like to put is drwxr-xr-x
Any idea would... (1 Reply)
I'll start off by saying that I know very little about Unix - however, I do know that I have a .profile file in my home directory, and that I should be able to invoke it by typing . profile. However, when I do this for ANY .filename, I get ".: Permission denied". I'm pretty sure that there is... (12 Replies)
I just started computer science at UW Milwaukee. When I access the university Solaris system from PuTTY, I get permission denied when I try to access the file I wrote. Now I really have no idea what I'm doing, I just don't understand why I get permission denied in my won directory. Thank You
... (0 Replies)