- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mount file system in different mode
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
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
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
12-26-2012 04:30 AM
12-26-2012 04:30 AM
mount file system in different mode
dear suppoort,
i had face a problem on the sytem...i need to change some file systems type as follo:
i need to chage the /opt to be read only and need to change the (var,home.tmp.stand) to be on nosuid mode...
all this on the plan of security... can i get your support on this issue and also does there were any impact on the system if i had change this file system to its new mounted.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2012 05:42 AM
12-26-2012 05:42 AM
Re: mount file system in different mode
What HP-UX version are you using?
>I need to change the /opt to be read only
/opt is designed to be read only, except when installing new software, so no problems:
mount -o remount,ro device-file /opt
>need to change the (var, home, tmp, stand) to be on nosuid mode.
It would be a waste of time to do this for non-NFS filesystems like /var/, /tmp/ and /stand/. So only /home would make sense. You may be able to use a similar mount command to change it without unmounting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2012 06:19 AM
12-27-2012 06:19 AM
Re: mount file system in different mode
A word of caution on a read only /opt file system. While it is the intention of /opt to be read only, not every 3rd party software provider uses it correctly. I have found major vendors both reading and writing files in the /opt file system. Using the find and –mtime commands, check for recently updated files. If you have vital software that does write to the file system, that should constitute remediation for any security exceptions for leaving the file system read write.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2012 03:35 AM
12-30-2012 03:35 AM
Re: mount file system in different mode
and also what is the right syntix for the read only file system in /etc/fstab...it could be as (ro,auto,user,exec).
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2012 04:37 AM
12-30-2012 04:37 AM
Re: mount file system in different mode
>do I need to change it for the file system which needs to be read only.
Right. Just add "ro," to the beginning of the options list field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2013 06:37 PM
01-01-2013 06:37 PM
Re: mount file system in different mode
Wouldnt do that. Changing modes from a default mode set by the OS, to a non-default mode, will only create problems and solving none. If something bad happened to the contents of /opt; f.e. a badly written script removing some files it shouldnt have removed, the solution is to adapt the script, not to make /opt readonly.
The OS is counting on /opt to be in readwrite mode, so changing to a non-default mode, is just asking for problems.