- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Why permissions different on different directory w...
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-22-2003 07:42 AM
08-22-2003 07:42 AM
mkdir test
in /users/testuser dir. and SGID is set on the directory.
If I run the same command in another directory like /tmp or /home the the perms are different .(no SUID set). I am executing mkdir as root in both directories.
Why ?
HPUX 11.00
See ex. below
========================
SERVER1::/users/testuser ==> umask
07
SERVER1::/users/testuser ==> id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7
(lp),20(users)
SERVER1::/users/testuser ==> mkdir test
SERVER1::/users/testuser ==> ls -ld test
drwxrws--- 2 root testuser 96 Aug 22 10:34 test
SERVER1::/users/testuser ==>
=================================
SERVER1::/tmp ==> mkdir test
SERVER1::/tmp ==> ls -ld test
drwxrwx--- 2 root sys 96 Aug 22 10:34 test
SERVER1::/tmp ==> umask
07
SERVER1::/tmp ==> id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7
(lp),20(users)
SERVER1::/tmp ==>
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 07:52 AM
08-22-2003 07:52 AM
Solution(on server1) ll -d /users/testuser
It must have SGID on it which is then copied to any subdirs created under it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 07:55 AM
08-22-2003 07:55 AM
Re: Why permissions different on different directory with mkdir command ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 07:58 AM
08-22-2003 07:58 AM
Re: Why permissions different on different directory with mkdir command ?
/users/testuser have SGID. Should have checked myself.
Much thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 08:00 AM
08-22-2003 08:00 AM
Re: Why permissions different on different directory with mkdir command ?
The parent dir surely has SGID set. Check that out.
-Umapathy