- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP umask
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
Forums
Discussions
Discussions
Discussions
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
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-30-2003 09:24 PM
11-30-2003 09:24 PM
FTP umask
Reading the various posts on this topic, I have learnt to get most of what I want set up done.
However, one thing remains unsolved; appreciate all assistance.
My user will ftp a folder which contains subfolders and files using a GUI-based ftp software. It recursively transfers the files and folders but only the files take the permission setting spelled out in the ftpaccess file. The folders (directories) remain at 750.
How do I get the directories' perms set up as I want?
Rgds,
Shahril
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 09:34 PM
11-30-2003 09:34 PM
Re: FTP umask
Which mask are you using ?
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 10:02 PM
11-30-2003 10:02 PM
Re: FTP umask
class all real,guest,anonymous *
upload / /ixos/extr3/ext_dir yes root sys 0666
upload /home/isdsbm /ixos/extr3/ext_dir/* yes root sys 0777 dirs
I ftp'd using isdsbm
My files become 777, but dirs are still 750
Rgds,
Shahril
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 12:10 AM
12-01-2003 12:10 AM
Re: FTP umask
Have you checked yout /etc/inetd.conf ?
This file has the basic parameters for the ftp daemon..
sample :
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 022 -i -o -B1
024
If you change the u - parameter, your basic setup for fiel attributes should change as well.
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 12:23 AM
12-01-2003 12:23 AM
Re: FTP umask
you could allow umask in the ftpaccess and have the user run "umask 000" (which would hopefully be possible in the GUI of the ftp client). Guess that would be the best solution.
Alternatively you can enable chmod, but then it would have to be done for each subdirectory, which is not a good solution.
If that user is the only one doing ftp to this machine you could also change the default umask for ftp in /etc/inetd.conf and re-reading inetd configuration by running inetd -c (Would not recommend that, though)
Any mkdir via ftp would then create a dir with permissions 777.
If all ftp-ed files end up in a certain directory, you could also run a daemon script that changes permissions to 777 whenever there is a directory with other permissions.
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 02:58 PM
12-01-2003 02:58 PM
Re: FTP umask
IIRC, the -u option in inetd.conf changes the default umask for all ftps. If so, that is not what I want.
Bernhard,
I tried running umask command from the FTP client, but it did not seem to work. Is there a way to enable it via the ftpaccess file?
I agree that your 2nd and 3rd suggestions are not ideal. However, I did think about the 4th one (a cronjob to chmod), but it is not neat enough although perhaps my last resort. And it is not foolproof as the cron interval must not be too frequent yet not too far apart that the job the processes the files runs before the chmod takes place.
Rgds,
Shahril
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 10:31 PM
12-01-2003 10:31 PM
Re: FTP umask
I believe you could just add
umask yes guest,real,anonymous
to your ftpaccess file to allow all clients the umask command.
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 11:44 AM
12-02-2003 11:44 AM
Re: FTP umask
I will try that, and report how it turns out.
However, if I read the man page correctly, that umask and other options are granted by default.
Rgds,
Shahril
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 09:22 PM
12-02-2003 09:22 PM
Re: FTP umask
Report: Still unsolved.
I am using the FTP Explorer from Hummingbird Exceed. Does anyone know of a graphical Windows-based FTP client that allows the user to issue a umask command?
The FTP Explorer has a feature to issue an arbitrary ftp command, but the umask command does not seem to work.
Appreciate all assistance, thx.
Shahril
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 06:05 PM
03-04-2004 06:05 PM
Re: FTP umask
# ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 002
Then restart 'inetd' with:
# /usr/sbin/inetd -c
Any one have further suggestions ?Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 08:07 PM
03-04-2004 08:07 PM
Re: FTP umask
User: Alfa
Home: dir /home/alfa
If I want Alfa puts some files in /beta and these files must have owner alfa group users and permission 0666:
upload /home/alfa /beta yes alfa users 0666
Remeber to define at the head of ftpaccess rules to access to your ftp site:
class local real,guest,anonymous *.domain 0.0.0.0
class remote real,guest,anonymous *
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 08:33 PM
03-04-2004 08:33 PM
Re: FTP umask
Besides the umask on the ftpdeamon there is a possebility to do an
chmod mode file-name
Change the permission modes of the file file-name on the remote
system to mode.
FTP understands this and if allowed ( rights) and if known by the interface you could try this.
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 09:44 PM
03-04-2004 09:44 PM
Re: FTP umask
Issuing Commands to an FTP Site
1 Select the site.
2 Select Properties.
3 Click the Startup tab.
4 In the Initialization command text box, enter any commands you want to issue to the FTP site at the beginning of the session. Separate multiple commands with a semi-colon (;).
For example, the command SITE UMASK 022 changes the UMASK used when creating files (on a UNIX system).
Rgds
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 05:35 AM
03-05-2004 05:35 AM
Re: FTP umask
Hummingbird FTP does allow you to send a umask command but you have to do it as follows:
1) Select File, then Send Arbitrary FTP Protocol Command...
2) The command is formatted like
site umask 022
HTH,
Mike Resnick