- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- set a default ftp umask by specific user
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
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
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
тАО01-03-2007 06:24 PM
тАО01-03-2007 06:24 PM
set a default ftp umask by specific user
======================================
/etc/ftp/ftpaccess
class all real,guest,anonymours *
guestgroup users
======================================
And I look document mentioned about below solution. Does anyone can tell me what's "classA" ?
=============================================
defumask umask [class]
defumask 0177
defumask 0133 classA
This creates files with the permission -rw-r--r-- for a user of ClassA. For other user, files are created with te permission -rw------
==============================================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2007 06:27 PM
тАО01-03-2007 06:27 PM
Re: set a default ftp umask by specific user
To control permissions for an individual user, add more lines to the ftpacess file.
defumask 0133 newuser
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2007 07:42 PM
тАО01-03-2007 07:42 PM
Re: set a default ftp umask by specific user
the umask still not chaged.
Do you have any idea ?
Thanks in advaced.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2007 08:11 PM
тАО01-03-2007 08:11 PM
Re: set a default ftp umask by specific user
directive takes an optional "class" argument,
not an optional "username" argument. I'd
guess that you need to define a "class" which
includes the user (or users) for which you
wish to set the default umask. "man
ftpaccess" also describes the "class"
directive which does this. For example (not
tested, but plausible):
class class_name real newuser
defumask 0133 class_name
The first defines a class, "class_name",
which comprises the real user, "newuser", and
the second sets the default umask for every
user in that class to "0133".
In the example you showed, the class name was
"classA", but we did not see where that class
was defined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2007 08:58 PM
тАО01-03-2007 08:58 PM
Re: set a default ftp umask by specific user
/etc/ftpd/ftpaccess
class classA real,guest,anonymous *
guestgroup users
defumask 0123 classA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2007 09:28 PM
тАО01-03-2007 09:28 PM
Re: set a default ftp umask by specific user
Are you changing other things to cause more
confusion, or what?
Otherwise, it looks ok to me. You might look
at /etc/inetd.conf to see how the ftpd is
being run. "man ftpd" says things like:
-a Enables the use of the configuration file
/etc/ftpd/ftpaccess. (See ftpaccess(4)).
-A Disables the use of the configuration file
/etc/ftpd/ftpaccess. (See ftpaccess(4)).
From that, it's not clear to me what the
default is, or whether you need to add "-a".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 12:07 PM
тАО01-04-2007 12:07 PM
Re: set a default ftp umask by specific user
Following are the settings, OS 11.11, Can you advise me what's should I correct ? Thanks.
notes: I using "user1" from ftp
/etc/ftpd/ftpaccess
class classA real,guest,anonymous *
guestgroup users
defumask 444 classA
/etc/group
users::20:root,user1
/etc/inetd.conf
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 02:55 PM
тАО01-04-2007 02:55 PM
Re: set a default ftp umask by specific user
But failed with HPUX 11.11
I'm looking at PATCH problem.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 03:27 PM
тАО01-04-2007 03:27 PM
Re: set a default ftp umask by specific user
When I config ftpaccess as follows:
when user1 ftp, can get the 0433 umask.
However, user2 also 0433.
But I just want to user1 has 0433 umask, others are 0177. How to configure it ?
========================================
class classA real,guext,anonymous *
defumask 0177
defumask 0433 classA
========================================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 04:24 PM
тАО01-04-2007 04:24 PM
Re: set a default ftp umask by specific user
This puts all users ("*") of any type
("real,guest,anonymous") into the class
"classA". (Or it would, if you spelled
"guest" correctly.)
If you want only one user ("user1") in that
class, try defining it like this, instead:
class classA real user1
> others are 0177
"defumask 0177" should do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 05:19 PM
тАО01-04-2007 05:19 PM
Re: set a default ftp umask by specific user
==============================
/etc/ftpd/ftpaccess
class classA real user1
defumask 0177
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 04:57 PM
тАО01-09-2007 04:57 PM
Re: set a default ftp umask by specific user
Does anyone has any suggestion are welcome ?
Thanks in advanced.