- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to `mkdir' a directory, whose privileges a...
Operating System - HP-UX
1753287
Members
5530
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-16-2009 12:52 AM
тАО01-16-2009 12:52 AM
How to `mkdir' a directory, whose privileges are same the existing direcotry
Hi forks,
I would like to implement the following functions in HP-UX,
# ll -d /foo/
and I would like to do `mkdir /tmp/foo', whose privileges and owner/group are same with /foo
How can I do that?
Thanks
-- Jerry
I would like to implement the following functions in HP-UX,
# ll -d /foo/
and I would like to do `mkdir /tmp/foo', whose privileges and owner/group are same with /foo
How can I do that?
Thanks
-- Jerry
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2009 01:04 AM
тАО01-16-2009 01:04 AM
Re: How to `mkdir' a directory, whose privileges are same the existing direcotry
Shalom Jerry,
Few ways.
1) Set the umask to the default that causes creation to be the correct. That is the simple way.
2) Have your script change permissions after creation
3)Create a situation where the mkdir is a subdirectory of a master directory and use chmod 3### (### are numbers) to create a parent child relationship concerning permissions.
SEP
Few ways.
1) Set the umask to the default that causes creation to be the correct. That is the simple way.
2) Have your script change permissions after creation
3)Create a situation where the mkdir is a subdirectory of a master directory and use chmod 3### (### are numbers) to create a parent child relationship concerning permissions.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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-16-2009 01:11 AM
тАО01-16-2009 01:11 AM
Re: How to `mkdir' a directory, whose privileges are same the existing direcotry
Hello Steven E. Protter ,
Thanks for your help, but if you notice the
sign `#', that mean I am the superuser and have a root privilege,
So what I want is,
# ll -d /dev
dr-xr-xr-x 13 bin bin 8192 Jan 10 01:53 /dev
and I want to mkdir in /tmp/dev/, which mode are set to same as the real one /dev/
-- Jerry
Thanks for your help, but if you notice the
sign `#', that mean I am the superuser and have a root privilege,
So what I want is,
# ll -d /dev
dr-xr-xr-x 13 bin bin 8192 Jan 10 01:53 /dev
and I want to mkdir in /tmp/dev/, which mode are set to same as the real one /dev/
-- Jerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2009 01:59 AM
тАО01-16-2009 01:59 AM
Re: How to `mkdir' a directory, whose privileges are same the existing direcotry
>which mode are set to same as the real one /dev/
See my permission copying scripts in this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1215123
See my permission copying scripts in this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1215123
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP