Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> permission problems
trentj
Posted: Apr 6 2004, 11:51 AM
Quote Post


Newbie
*

Group: Members
Posts: 1
Member No.: 238
Joined: 6-April 04



Hi I am a programmer and My friend has set up a linux box and given me an account but my user doesn't have permissions to write into the html folder that we point to for the web it's /var/www/html

how do we change my permissions so I can write to that please.


Also I wrote a php script to upload and write files to a directoruy in php works fine but i need to make the permissions on the folder 777 so WWW can write to it
is this an unsafe practice is should it be ok. IE can it be easily hacked because of the 777 permissions I don't understand it all that well

Thanks IN advance for any info.

Trent
PMEmail Poster
Top
Glen
Posted: Feb 23 2005, 10:00 AM
Quote Post


Newbie
*

Group: Members
Posts: 1
Member No.: 829
Joined: 23-February 05



QUOTE
but my user doesn't have permissions to write


Normal user in linux can only write in there home folder "/home/username/"

If you wish to right anywhere else then you need to be logged in as root. This can be done via cammand line using 'su' and typing in your ROOT password.

QUOTE
make the permissions on the folder 777 so WWW can write to it


An easy GUI way to give your self permission to a folder is to log in as root, open the file manager (konqeuror or nautius) and find the folder you wish to access, right click and click on the permissions tab, you can change permissions here.

QUOTE
is this an unsafe practice


Any person that does manage to hack your system will be able to access this folder with out having to hack the Root password, kinda like Windows.

Thanks,
Glen
PMEmail Poster
Top
fishsponge
Posted: Feb 27 2005, 12:53 AM
Quote Post


Administrator
********

Group: Admin
Posts: 679
Member No.: 1
Joined: 13-February 03



if a friend has given you a user account and would like you to write to a directory you currently have no access to, then although everything Glen says above is correct, it's *really* not the way to go about it.

what your sysadmin should do is set up a group. Add everyone to that group who needs to write to the directory, and then run "chgrp -R <grpname> /path/to/directory".

That way, you can give everyone access to the directory they need without letting them become root, and without giving everyone in the world access.
PMEmail PosterUsers WebsiteICQAOLYahooMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Installation/Configuration | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0720 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: SolidWorks 3D CAD :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum