Ok step by step: 1) 'chmod' is the command you can use. It need more parameters. To see usage type "man chmod". 2) Using chmod you will be able to change permissions on a single file or a directory. To recursively change permissions in a directory tree use -r option. 3) To be able to create files you need write permission in that directory. Make sure there is write permission so that your php can create files.
- sample of what you can do. Assume your directory is called 'phpdir'. Try this (not the best way but see if it works) # chmod -R 777 phpdir This allows everybody to read write and execute in the phpdir tree. - Pranay -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Manisha Sent: Thursday, May 30, 2002 2:24 PM To: [EMAIL PROTECTED]; Pranay Kumar Subject: RE: How to give commands to Linux Thanks for your response, Yes, I can see GNOME. But I can give read/write/execute permission to only one individual file (by right click the file - properties). But I need to give permission to directory, how to do it ? I also found a command line option - terminal (some thing like DOS) I changed the directory to my directory and gave chmod - but it is saying too few arguments. Basically I want that if through PHP I give command for open file in write mode and if file does not exists it should create it and write into it. My file is not getting created at all as directory seems to be not allowing it. Manisha At 01:31 PM 5/30/02 +0800, you wrote: >Since you mention explorer, I assume you are using some window manager >(graphical interface). In that case the permission can be set from the >right click menu or somewhere else in the UI (depends on which window >manager you are using - eg. KDE or GNOME). If you want to use command >line check out the command 'chmod'. > >- Pranay > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >On Behalf Of Manisha >Sent: Thursday, May 30, 2002 1:02 PM >To: [EMAIL PROTECTED] >Subject: How to give commands to Linux > >I am totally new to Linux. I want to give write permission to one >directory >- want to create and write into the file - I can open the directory >(like >explorer in windows), but then how to give the write permission ? > >Can anybody explain in detail the steps involved? I am sorry to ask such >a >silly question, but... > >Thanks in advance >Manisha > > > >_______________________________________________ >Redhat-list mailing list >[EMAIL PROTECTED] >https://listman.redhat.com/mailman/listinfo/redhat-list _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list