- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mkdir permission problems
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
Forums
Discussions
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
06-26-2001 06:22 AM
06-26-2001 06:22 AM
mkdir permission problems
When the directories do not exist the new ones get the correct permissions. When one already exists the new ones do not get the correct permisions.
Is there a fix that I can not find or is this a bug or is it that I misunderstand what I am seeing?
Why are the permissions 777 when the 1st directory exists?
/tmp
>umask
022
/tmp
>mkdir 1 11 111
/tmp
>ls -ld 1 11 111
drwxr-xr-x 2 estewar1 users 96 Jun 26 09:33 1
drwxr-xr-x 2 estewar1 users 96 Jun 26 09:33 11
drwxr-xr-x 2 estewar1 users 96 Jun 26 09:33 111
/tmp
>rmdir 11 111
/tmp
>mkdir 1 11 111
mkdir: cannot create 1: File exists
/tmp
>r ls
ls -ld 1 11 111
drwxr-xr-x 2 estewar1 users 96 Jun 26 09:33 1
drwxrwxrwx 2 estewar1 users 96 Jun 26 09:33 11
drwxrwxrwx 2 estewar1 users 96 Jun 26 09:33 111
/tmp
>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 06:34 AM
06-26-2001 06:34 AM
Re: mkdir permission problems
i've done the same on 10.20 and 11.00 and got the same results.
Looks like you have found a bug in mkdir.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 06:36 AM
06-26-2001 06:36 AM
Re: mkdir permission problems
You can get around it by specifying the required mask with the -m argument e.g.
mkdir -m 755 1 11 111
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 06:38 AM
06-26-2001 06:38 AM
Re: mkdir permission problems
hp has got an ChangeRequest (CR) for it: JAGad49043
I could not jet find the patch related to it. I'll post if I found the patch.
rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 06:41 AM
06-26-2001 06:41 AM
Re: mkdir permission problems
Looks like you have found a real bug in mkdir.
It does the same thing in 10.20,11.0, and 11i.
The only workaround I've found is to add the -m 755 option to mkdir to force creation with the desired mode.
Regards, Clay