- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File Permission problem
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
08-24-2003 07:22 PM
08-24-2003 07:22 PM
I have crearted a user with umask 022. it should get -wxr-xr-x bu deafault. but when he creats a file it has -rw-r--r-- and this is also true for ftp.
Can any one help me regarding this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 07:29 PM
08-24-2003 07:29 PM
Re: File Permission problem
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 07:35 PM
08-24-2003 07:35 PM
Re: File Permission problem
No there is no way to have the execute bit automagically set. As Bill said, you must explicitly set the e(x)ecute bit if, and only if, it is needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 08:02 PM
08-24-2003 08:02 PM
Re: File Permission problem
directories and exe's 777 -rwxrwxrwx
other files 666 rw-rw-rw-
i.e.the umask being 000.
When you have umask as 022 then you have
directories as 755 and files as 644
(subtracting 022 from 777 and 666)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 08:06 PM
08-24-2003 08:06 PM
Re: File Permission problem
but it should have rw permission from group with umask 022.
i am not getting that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 08:14 PM
08-24-2003 08:14 PM
Re: File Permission problem
i want to set -rwxrw---- for a user. what should i do. what will be the umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 08:18 PM
08-24-2003 08:18 PM
Re: File Permission problem
As said, the umask is substracted from 777 and 666 for dir and files respectively.
r - 4
w - 2
x - 1
So for the files with umask 022 the value is 644 which leads to rw-r--r--
Hope I understood your problem correctly.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 08:21 PM
08-24-2003 08:21 PM
Re: File Permission problem
produces
-rw-r--r--
i want to set -rwxrw---- for a user. what should i do. what will be the umask
007
will produce -rw-rw-r--
Executable permission isn't done automatically because its a security hazard. The user needs to make files excutable themselves.
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
08-24-2003 08:22 PM
08-24-2003 08:22 PM
Re: File Permission problem
The umask will be 006. After creating the file, set the executable bit for the file like
chmod u+x a
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 08:28 PM
08-24-2003 08:28 PM
Re: File Permission problem
for directories & exe's it would be
rwxrw----
for files
rw-rw----
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 08:29 PM
08-24-2003 08:29 PM
Re: File Permission problem
After setting umask 006 i get -rw-rw---- while i create a file. It is ok. but when i use ftp from another machine to put file the permission again changes to -rw-r--r--.
I need -rw-rw---- when i ftp from another server.
what should be the umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 08:47 PM
08-24-2003 08:47 PM
Solutionchange in your /etc/inetd.conf file as
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
to
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u017
Then do a
inetd -c
This will effect for all the users for the ftp.
If you are just trying for some sessions you can just do a
umask 017 from the ftp
ftp <>hostname>
ftp>umask 017
ftp>mput
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 09:05 PM
08-24-2003 09:05 PM
Re: File Permission problem
Can i do it for a specific user.
if i set 017 then is not owner will get rwx permission.