Web Hosting Talk







View Full Version : Lost my rights to files


kipasa
10-11-2003, 01:47 AM
I installed a script using its "auto install" feature... and it seems that I lost my rights as a normal user to modify/delete these files unless i am in SSH as root through pico.

How do I gain the rights to those files as a normal user back?

Also, where can i find resources on SSH? I am mean HOWTO tutorials on using SSH, pico and such inner functionalities.

Thanks! :cartman:

sprintserve
10-11-2003, 01:50 AM
If you are running php without phpsuexec for example, the files will adopt the permissions of the user nobody.

Just chown them back to your user

chown username:groupname /home/username/ -R

kipasa
10-11-2003, 02:02 AM
how do i install phpsuexec?

you wrote:
chown username:groupname /home/username/ -R

username <- my login username right?
groupname <- what would this one be?

Thanks a lot sprintserve... :)

sprintserve
10-11-2003, 02:06 AM
username = username of the account
groupname = typically the same as the username


to install phpsuexec, you would need to recompile apache. If you are using Cpanel, try

/scripts/easyapache and choose an option with phpsuexec or option 6 where you can customise your install.

kipasa
10-11-2003, 02:07 AM
got it!
THANK YOU!
very quick!
:D

Alex042
10-13-2003, 11:51 AM
phpsuexec doesn't come without its pitfalls though. I've found that with phpsuexec, apache may actually give away all of its rights to files which may cause problems with some gallery scripts. In this case, everytime a new photo is uploaded, someone will have to manually ftp into their site and chmod their files so they show up in the browser.