- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File permissions after default UNIX HP-UX inst...
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
10-11-2000 04:38 AM
10-11-2000 04:38 AM
File permissions after default UNIX HP-UX installation
/usr/local
/usr/local/man
/usr/share/man/cat1.Z through cat8.Z
/usr/local/etc
/usr/local/lib
/var/adm/streams
/var/adm/diag
(just to name a few)
have 777 permissions set! Isn't that a disaster waiting to happen? What if a user decides to use those directories for some files s/he would want to store?
In any case, where can I find some info on HP-UX default perms? What scares me the most is the fact that the systems came this was factory pre-installed.
Is it safe to assume that none of the system directories/files should be 777?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 04:47 AM
10-11-2000 04:47 AM
Re: File permissions after default UNIX HP-UX installation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 04:49 AM
10-11-2000 04:49 AM
Re: File permissions after default UNIX HP-UX installation
This is not quite as bad as first blush would suggest. The list you have given represent directories. In general, you want to be able to have users write into and delete from directories. On an individual basis and on different subdirectories you could certainly tighten down (e.g. 755).
You can improve things by setting the sticky bit on directories:
# umask 022
# chmod 1777
In this case, all users can write to the directory but they can ONLY remove files for which they have explicit write permission.
Hopefully this helps.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 04:50 AM
10-11-2000 04:50 AM
Re: File permissions after default UNIX HP-UX installation
For example:
# swverify -v check_permission=true SystemAdmin
# swverify -v {backlash_here}*
Literally use the backslash. There's a problem in the Forums displaying backslashes until the ITRC is updated.)
If you are looking for documentation, try this link. (I used "default permissions" in a search from docs.hp.com).
http://docs.hp.com/dynaweb/hpux10/hpuxen0a/b685/@ebt-link;nh=1?window=CURRENT;target=%25N%14_8817_START_RESTART_N%25;DwebQuery=default+permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 05:37 AM
10-11-2000 05:37 AM
Re: File permissions after default UNIX HP-UX installation
I was comparing settings with my Linux box and perms there are set to 0755.
I thought I'd just throw it on the floor to see what other people think.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 11:03 AM
10-11-2000 11:03 AM
Re: File permissions after default UNIX HP-UX installation
As far as the /usr/share/man/cat* directories go, I just remove them all together. The time that it takes to re-format the man pages each time they are used is a lot less than dealing with the wide open permissions.
I'm curious as to why the default install does not set the sticky bit on /tmp?
Thanks,
Matt Loveland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 03:54 PM
10-11-2000 03:54 PM
Re: File permissions after default UNIX HP-UX installation
It's not clear why they were changed from the 'normal' 755 from all previous versions of HP-UX but clearly the change was not made with the knowledge of dozens of years of legacy Unix applications. These apps may install into /usr/local and may not have an option to move them.
This means that users will put /usr/local into their path, and with wide open 777 permissions, anyone can put Trojan horses into this directory (like su or even the gerp command which is a common mispelling for grep).
So fix all your systems to take away write privileges for /usr/local directories with:
find /usr/local -type d -exec chmod go-w {} ;
Note: There must be a backslash-semicolon at the end of the exec command...ITRC code currently may have problems showing the backslash character.
As fas as the sticky but, this is a good technique to prevent users from clobbering each other's files in /tmp. However, /var/tmp is the *correct* directory for users, not /tmp. /tmp and /var/tmp should both have the sticky bit set. To my knowledge, HP-UX has never installed these directories with the bit set.
Bill Hassell, sysadmin