setting permissions
there is a user gws on my server and I want to give him rights to upload the file in /var/www/vhosts/servername/httpdocs
Thanks & best regards |
Try the man page for chown or chmod. With chown you can change ownership of the file and with chmod you can set the permissions for the file.
|
Quote:
thanks & best regards |
What are the current ownerships & permissions on the directory, who's
the owner of the apache process? Cheers, Tink |
Quote:
how can I know that who is the owner of the apache process? I have root access thanks & best regards |
Do you have shell access to the machine? If you don't - ask the
admin. If you do - 'ps -ef |egrep "(apache|httpd)"'. And 'ls -ld /var/www/vhosts/servername/httpdocs' Cheers, Tink |
Usually the owner of an Apache process is indicated within the httpd.conf file. I would probably bank that root owns it.. The www directory usually is owned by root, I would do an
ls -ld /var/www/vhosts/servername/httpdocs This will show the permissions of the httpdocs.. |
Quote:
drwxr-x--- 22 gws psaserv 4096 Dec 21 19:32 /var/www/vhosts/servername/httpdocs |
Well, this tells you that gws owns httpdocs and psaserv is the group.. The drwx tells me that user has full permissions, and the r-x tells me that the group has read and execute permissions.. To change these perms do the following:
7 = rwx 6=rw 5=rx 4=r 0= nothing # chmod 777 httpdocs - gives read,write,execute perms for owner,group and other # chmod 700 httpdocs - gives read,write,execute for owner only |
Quote:
Please help me to solve this problem Forbidden You don't have permission to access /eguide/reports/index.html on this server. -------------------------------------------------------------------------------- Apache/2.0.52 (Red Hat) Server at www.globalsteelweb.com Port 80 |
do an ls -l /eguide/reports/index.html and paste the output..
|
Actually do a ls -ld of /eguide then /eguide/reports too..
|
Quote:
thanks for your cooperation thanks again & best regards |
All times are GMT -5. The time now is 07:57 AM. |