Location: Brighton, UK
Rank: Uber Elite
Here is a problem I have and looking for some suggestions.
2 accounts on a server.
1 account works perfectly fine.
User is the account name, and group is root. (main account on server)
1 account has issues with creating files. directories it can create fine, but wont allow any creating of files due to permission error.
User is the acconut name, group is psacln (some plesk config setting or something?)
Files are created fine via FTP etc, but its when files are created via a script (running with user apache - the default user when running files).
The error given states the UID of the person trying to create the file (user: apache) do not have privs to create a file in the user directory.
Even chmodding a directory / file to 777 still wont let it create files.
SuExec module is installed and working fine, setup correctly.
a temporary fix has been to chown the whole folder to owner:apache, group: apache.
Not the ideal fix! as then the user cannot create files as it does not have privs!
I think we even added that user to the apache group and it still won't create files when chown'ed to that user.
Hope I'm making sense. Root op might be able to explain it better as he's been helping me with the issue.
Any ideas? Suggestions? Things to try? Anything?!
Warn Level: 90
|ls -l|grep %filename%|
"The chowner of property." - Zeph
�Widespread intellectual and moral docility may be convenient for leaders in the short term, [center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
but it is suicidal for nations in the long term.� - Carl Sagan
|Have you tried becoming root with su? Or using sudo to execute your commands? Regardless of whether or not it should work without doing that, it could be helpful to know whether those commands make any difference.|
Location: ENDING YOUR ONLINE EXPERIENCE!
|Pretty sure in plesk you have to add your user account to psacln, Use:|
/usr/sbin/usermod -a -G psacln "User account" Then change permissions from there.
Check the etc/group and etc/group files to see if your "user" was added,
Should read: psacln:x:2524: "user account". If not you can manually edit it.
I deal in pain, All life I drain, I dominate, I seal your fate.
Edited by korg on 15-09-09 19:59
|OMG did Richo die? Sorry, totally pointless...|