View Full Version : permission being changed
Joshua
07-11-2005, 12:02 AM
I installed something using mambo, and it set the users id on the files to 99, instead of the username i have.
How do i change a files user ID?
I did submit a ticket, but i am just waiting and wondering what you guys know!
Regards,
Joshua
Joshua
07-11-2005, 12:33 AM
This is what support told me.
login into SSH
chown -R username.username file/foldername
username is the users name. and you can even change a file or a directory and all the files under it.
Very usefull if a script turns the ID to something else.
Robert
07-11-2005, 06:02 PM
In case anyone wonders why files sometimes end up with funky ownership is because Apache will run as the user "Apache" or "Nobody" (depending on your panel and configuration).
When you use a PHP or Perl script to create files, etc... those files are then owned by the user that created it. Thus in this case as "Apache" or "Nobody".
If the script is run under phpsuexec, then the process runs as the user and would be created as the user. It's usually not too big of a deal, but the command above should fix it should it effect you. :)
Joshua
07-13-2005, 06:04 PM
Well, I used a PHP script to upload something, and i do have PHPsuexec running. At least i think i do. How would i know if i have it running or not?
I went into WHM and went to "Service Configuration " and clicked on "Enable/Disable SuExec" and it says this:
suexec Status
enabled
So would that mean it is enabled, or do i have to do something in order for it to be enabled?
I am new to this, sorry if this is a newb question.
Regards,
Joshua
ndndixie
07-13-2005, 06:10 PM
Joshua, using Mambo? What's the server settings in global admin?
Joshua
07-13-2005, 06:14 PM
Yes, i am using Mambo.
Where would i find Server Settings? on mambo, or in WHM?
Also, is Mambo slow? or use up alot of resources?
Joshua
07-13-2005, 06:22 PM
I found this in the tweak settings:
Prevent the user 'nobody' from sending out mail to remote addresses (php and cgi scripts generally run as nobody if you are not using phpsuexec and suexec respectively.)
But i have seen email being sent out with user nobody. Do i not have PHPsuexec running correctly?
ndndixie
07-13-2005, 06:26 PM
In Mambo Admin. Log in, look under "Site" "Global Configuration" and click on the server tab. You can also set user permissions under "Site" "User Manager"...if those aren't set right, nothing you do is going to override that script. I use Mambo a lot and love it but it's tricky. Mambers.com is a good site to get help on. l
Joshua
07-13-2005, 06:29 PM
Absolute Path:
Live Site:
Secret Word:
GZIP Page Compression:
Login Session Lifetime:
Error Reporting:
Help Server:
File Creation:
Directory Creation:
Only options. what am i looking for?
ndndixie
07-13-2005, 06:35 PM
File Creation:
File Permissions
Dont CHMOD new files (use server defaults)
CHMOD new files to:
User: read write execute
Group: read write execute Apply to existing files
set that to 777 if you're editing templates or something and apply to existing. Just don't forget to lock it back down after you get through.
For the user permissions, go in the user manager. You can either add or edit user permissions as needed. If a user is set with no write permissions there, it will override anything else you do.
World: read write execute
Robert
07-13-2005, 07:02 PM
Hi there,
Suexec and phpSuexec are different. The 2nd is what you need to pay attention to. :)
If it's running on a VPS built by us without you specifically recompiling it to add phpSuexec support, then it would not be enabled by default. You will know if it's enabled if you can see *PHP* scripts running in "top" from ssh.
If you only see Apache (httpd) processes, it means it's not enabled and runs as part of Apache itself.
Joshua
07-13-2005, 08:48 PM
OK thank you very much, ididnt know it was seperate. I will contact support on how to enable it.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.