Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th November 2011, 14:36
Ventzy Ventzy is offline
Junior Member
 
Join Date: Jan 2010
Posts: 17
Thanks: 2
Thanked 2 Times in 2 Posts
Default Writing to outside directory

I have web site with user web1:client1 and directory /usr/local/app/uploads/images with owner myuser:myuser. In this web site there is upload form, which must write images to /usr/local/app/uploads/images.

As I prefer to keep all files under websites directory, from application's point of view, I created symlink /usr/local/app/uploads -> /var/www/clients/client1/web1/web/uploads, and make script write to /var/www/clients/client1/web1/web/uploads/images.

If the original dir /usr/local/app/uploads have 777 rights, it works. As I don't want this, I added the user web1 to the group myuser and change rights to 775. But it does not works (no write permissions).

Code:
# groups web1
web1 : client1 myuser sshusers
In the script I tried to write file in the original /usr/local/app/uploads/images directory directly, but it does not work either.

Any ideas?

In shell, I tired to swith user to web1 and try to write file manually, but when execute "su web1" logged as root, nothing happens - the console continues to show root as logged. If execute "su web1" logged as "myuser", I have prompted for password, which I don't know.
Reply With Quote
Sponsored Links
  #2  
Old 14th November 2011, 14:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,245 Times in 4,111 Posts
 
Default

1) Check that you added the path /usr/local/app/uploads/images to the open_basedirs of this website, separated by :

2) run:

chown web1:client1 /usr/local/app/uploads

If another user should access the files in that directory, then add this user to the client1 group.

Quote:
In shell, I tired to swith user to web1 and try to write file manually, but when execute "su web1" logged as root, nothing happens - the console continues to show root as logged. If execute "su web1" logged as "myuser", I have prompted for password, which I don't know.
This test can not work, as the user web1 has no password and no shell, so it can not be used to login on the shell.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Webmin upgrade lishaw1968 Installation/Configuration 15 26th August 2010 15:23
Email problem 'Cannot set my user or group id.' (using ISPConfig 3 + OpenSuSE 11.2) urosm Installation/Configuration 5 19th June 2010 22:41
can't help ispconfig to install please help steve51184 Installation/Configuration 17 20th February 2009 10:37
ISPConfig install issues... flyingaggie Installation/Configuration 2 18th July 2008 10:46
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17


All times are GMT +2. The time now is 11:29.


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