Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th July 2011, 16:42
sebasjuh sebasjuh is offline
Junior Member
 
Join Date: Jun 2011
Posts: 6
Thanks: 2
Thanked 1 Time in 1 Post
Default 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?
Reply With Quote
Sponsored Links
  #2  
Old 14th July 2011, 19:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 22nd July 2011, 09:22
sebasjuh sebasjuh is offline
Junior Member
 
Join Date: Jun 2011
Posts: 6
Thanks: 2
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko View Post
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?
Reply With Quote
  #4  
Old 23rd July 2011, 12:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
sebasjuh (25th July 2011)
  #5  
Old 25th July 2011, 09:32
sebasjuh sebasjuh is offline
Junior Member
 
Join Date: Jun 2011
Posts: 6
Thanks: 2
Thanked 1 Time in 1 Post
 
Default

Thanks Falko!
That was indeed the trick.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File permissions in folder Hagforce Server Operation 0 5th February 2011 12:49
FastCGI PHP and permissions issue on ISPConfig perfect server (opensuse 11.3) wildnux Server Operation 0 28th January 2011 23:03
Question about web/ folder permissions gkovacs Installation/Configuration 3 18th April 2009 15:42
chroot and folder permissions newmember Installation/Configuration 2 25th December 2008 11:18
Only an INBOX folder with the IMAP settings - Roundcube doesn't create folders vaio1 General 2 28th May 2008 21:24


All times are GMT +2. The time now is 02:33.


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