1833584 Members
3532 Online
110061 Solutions
New Discussion

ftp permissions

 
SOLVED
Go to solution
Jose Luis
Advisor

ftp permissions

Hi:
(HP-UX 11.0)
When I left files (FTP) with my user in the server, this files has 640 (rw-r-----).
How can I change for 644 (rw-r--r--)?
Thank's in advance
The UNIX world is the tenth planet in the solar system
8 REPLIES 8
Justo Exposito
Esteemed Contributor
Solution

Re: ftp permissions

Hi Jose Luis,

You must edit the file /etc/inetd.conf and chenge the line:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 022

the "022" is the umask for the ftp connections.

Hope this helps,

Justo.
Help is a Beatiful word
Uday_S_Ankolekar
Honored Contributor

Re: ftp permissions


You can use umask and chmod command while you are on ftp prompt.

-USA..
Good Luck..
Carlos Fernandez Riera
Honored Contributor

Re: ftp permissions

Hola:

Not so fast but... check man ftpaccess.
unsupported
Jose Luis
Advisor

Re: ftp permissions

and, its posible do it only for a particular user?
Thank's
The UNIX world is the tenth planet in the solar system
Justo Exposito
Esteemed Contributor

Re: ftp permissions

Hi Again,

I think that you must use ftpaccess for this, as Carlos tell you.

Check the man ftpaccess.

Regards,

Justo.
Help is a Beatiful word
Ravi_8
Honored Contributor

Re: ftp permissions

No you can't do it for a particular user.
changes made in /etc/inetd.conf affects the system as whole
never give up
Shannon Petry
Honored Contributor

Re: ftp permissions

It is also important to make sure to disable umask for control. In ftpaccess

umask no guest,real

Also, disable chmod commands

chmod no guest,real

Regards,
Shannon
Microsoft. When do you want a virus today?
Bill Hassell
Honored Contributor

Re: ftp permissions

Actually, for a particular user, I would leave the ability to use chmod, then give the user a script rather than using ftp directly. In the script, the remote file's permission bits can be set automatically to any value.


Bill Hassell, sysadmin