HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   OpenSuse settings permissions on folder? (http://www.howtoforge.com/forums/showthread.php?t=53391)

sebasjuh 13th July 2011 16:42

OpenSuse settings permissions on folder?
 
Hello,
I have OpenSuse 11.4 (with Gnome) running with apache2 installed.
On apache2 i have created some virtual hosts, which were stored in /srv/www/vhosts/website

When I upload a new file to my website folder te root user has full permissions on that file but the others have none rights. So I can't open the file in my browser.

How can I change the default rights to the website folder (and let the subfolders/files inherit the permissions) so that the root had RWX rights, de groupname needs RW rights and the others need R rights.

Can somebody tell me what command I have to type on the terminal so that the default permissions are changed to the one I want?

falko 14th July 2011 19:06

How do you upload your files? Through FTP? If so, what FTP server do you use?

You can use the chmod and chown commands to change ownerships and permissions of files/directories. Take a look at
Code:

man chown
man chmod


sebasjuh 22nd July 2011 09:22

Quote:

Originally Posted by falko (Post 259799)
How do you upload your files? Through FTP? If so, what FTP server do you use?

You can use the chmod and chown commands to change ownerships and permissions of files/directories. Take a look at
Code:

man chown
man chmod



Falko thank you for your reply and sorry for the very late reaction but havn't had any time to react.

First of all I upload these files with FileZilla ftp client to the server. On the server I have Pure-ftp service up and running. I can upload files but the default permissions on the new uploaded files are not right.

I already tried it with chmod and than the existing files in the folder/subfolder get changed but when I upload a new file it gets the default permission that only the root user can read or change the files. (And the others have no rights)

And I want it changed that in my folder the others gets read rights so they can view my webpage by default when I change something.

Is it possible to change the default permission on one folder?

falko 23rd July 2011 12:43

I guess you need to change PureFTPd's umask. Take a look at http://download.pureftpd.org/pub/pure-ftpd/doc/README and search for umask.

sebasjuh 25th July 2011 09:32

Thanks Falko!
That was indeed the trick.


All times are GMT +2. The time now is 04:13.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.