- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP File Permissions
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2002 03:48 PM
тАО11-25-2002 03:48 PM
FTP File Permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2002 03:59 PM
тАО11-25-2002 03:59 PM
Re: FTP File Permissions
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x29cecf38d6bdd5118ff10090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2002 04:03 PM
тАО11-25-2002 04:03 PM
Re: FTP File Permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2002 04:14 PM
тАО11-25-2002 04:14 PM
Re: FTP File Permissions
There are perhaps only two ways to do this. The first would be utilise the 'class' option which comes with 'ftpaccess'. The second would would be to have a simple script run from cron that updates the file permissions of designated directories.
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 05:46 AM
тАО11-27-2002 05:46 AM
Re: FTP File Permissions
I am not sure how the FTP is being performed. If the file is being FTP'd within a script you can use "chmod". I have a script I use to ftp files from time to time where I must set proper file permissions. I attached the script. Let me know if there is more detail to your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 05:51 AM
тАО11-27-2002 05:51 AM
Re: FTP File Permissions
1. The first method involves altering the definitions for the ftp
daemon. "ftpd" is the DARPA Internet File Transfer Protocol server.
It expects to be run by the Internet daemon "inetd". "inetd" runs
"ftpd" when a service request is received at the port indicated
in /etc/services.
More detailed information on this can be found in the manual pages for
"inetd", "inetd.conf" and "services".
The syntax of "ftpd" is:
/etc/ftpd [-l] [-t timeout] [-T maxtimeout] [-u umask]
To alter the ftp daemon definition change the line in /etc/inetd.conf
from:
ftp stream tcp nowait root /etc/ftpd ftpd -l
to:
ftp stream tcp nowait root /etc/ftpd ftpd -l -u002
Files created by ftpd will have permissions of rw-rw-rw- unless there
is a umask to alter the permissions. By default the umask is 027 which
gives default permissions for files created by ftp as rw-r-----.
So, the example above would cause files created by an ftp user to have
access rights of -rw-rw-r--. For more details on masking refer to the
manual pages for "umask".
Once the /etc/inetd.conf file has been altered it is necessary to force
"inetd" to reread its configuration file. This can be done by:
* Enter "inetd -k". This will kill the current process.
* Enter "/etc/inetd". This will restart the inetd process.
2. From within "ftp", you can use the command "umask" from the "ftp"
prompt:
# ftp hphost
Connected to hpsystem.kkk.lll.com.
220 hphost FTP server
Name (hphost:root):
331 Password required for root.
Password:
230 User root logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> umask 002
200 UMASK set to 002 (was 027)
ftp>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 03:21 PM
тАО11-27-2002 03:21 PM
Re: FTP File Permissions
I think the default umask for ftp is 027. you can open your ftp session
then enter
"umask 002" or any over desired value umask for your ftp session.
To make perm change edit /etc/inetd.conf
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -L -v -u 122
the -u option to change default umask. Change it to what you want