Follow us on Twitter!
It is never to LATE to become what you never WERE.
Thursday, April 24, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 31
Guests Online: 24
Members Online: 7

Registered Members: 82895
Newest Member: kevy90
Latest Articles
View Thread

HellBound Hackers | Computer General | Trouble Shooting

Author

Linux Server UID Permissions Issue

Mr_Cheese




Posts: 2468
Location: Brighton, UK
Joined: 30.11.04
Rank:
Uber Elite
Posted on 14-09-09 20:29
Hello everyone,

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?!

http://www.hellboundhackers.org/
Author

RE: Linux Server UID Permissions Issue

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 14-09-09 20:41
ls -l|grep %filename%



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
Author

RE: Linux Server UID Permissions Issue

ynori7
Member



Posts: 1486
Location: #valhalla
Joined: 08.10.07
Rank:
God
Posted on 14-09-09 21:24
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.


halls-of-valhalla.org/images/affiliateLogo.png voodoorage.halls-of-valhalla.org/images/smallLogo.png
i537.photobucket.com/albums/ff338/ynori77/archenemysig1.jpg
ynori7 http://halls-of-valhalla.org
Author

RE: Linux Server UID Permissions Issue

korg
Admin from hell



Posts: 2798
Location: ENDING YOUR ONLINE EXPERIENCE!
Joined: 01.01.06
Rank:
God
Posted on 15-09-09 19:28
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.


i57.photobucket.com/albums/g215/korg1269/shodan13.jpg

I deal in pain, All life I drain, I dominate, I seal your fate.

Edited by korg on 15-09-09 19:59
O R
Author

RE: Linux Server UID Permissions Issue


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 16-09-09 14:16
OMG did Richo die? Sorry, totally pointless...