1753519 Members
3894 Online
108795 Solutions
New Discussion юеВ

File Permission Problem

 
SOLVED
Go to solution
roobala
Frequent Advisor

File Permission Problem

Hi,

When we do ftp of files from a PC (Win 98 or Win NT) to our HP 9000 server, we want all the files to be with 777 permission (ie., read, write and execute permission to all).

Can anyone tell how to attain this?

Thanks and Regards.
4 REPLIES 4
federico_3
Honored Contributor
Solution

Re: File Permission Problem

you have ti=o change the default umask in /etc/inetd.conf:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 000

then run:
inetd -c
to force the inetd daemon to reread the conf file

federico
Vincenzo Restuccia
Honored Contributor

Re: File Permission Problem

cd /path_files
chmod 777 *
Shannon Petry
Honored Contributor

Re: File Permission Problem

If your running wu-ftp, then you have to make sure that you have chmod enabled for users. {I think it is by default, but not sure}.

Most files should be created with rw-rw-rw permissions though. The execute bit is a special bit added by compilers and manually. All data ftp'd or copied with a umask of 000 except for directories will have permissions of 666!

Regards,
Shannonn
Microsoft. When do you want a virus today?
Joseph C. Denman
Honored Contributor

Re: File Permission Problem

fredrico is correct. His example will set the default ftp umask. However, If you do not want all incoming to have 777 permissions, you will need to issue the "umask 000" prior to the put.

...jcd...
If I had only read the instructions first??