- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem of chmod
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
07-05-2011 12:48 AM
07-05-2011 12:48 AM
Problem of chmod
Hi All,
I have encountered a problem of chmod.
Here is details about what i did:
# mount -F lofs -Q -e -o ro /home/test_sbin/ /home/test_usr/
mount: mounted /home/test_sbin on /home/test_usr
# cd /home/test_usr/
# ls
file test
# chmod 777 test
chmod: can't change test: Read-only file system
# chmod 777 file
# ls -al
total 0
-rwxrwxrwx 1 root sys 0 Jul 4 23:01 file
drwxrwxrwx 2 root sys 96 Jul 4 23:02 test
But it seems that the chmod on the file can work fine, So what is the reason?
My system is B.11.31.1103 and IA64 platform.
Thanks in advance!
kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2011 02:05 AM
07-05-2011 02:05 AM
Re: Problem of chmod
you only listed 'ls -al' once, so we don't know if any 'chmod' worked. All permissions are set to 777.
>mount -F lofs -Q -e -o ro <-you've set the option to read-only
so 'chmod' should not 'work fine'.
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2011 04:26 AM
07-05-2011 04:26 AM
Re: Problem of chmod
The error message is quite clear. You cannot modify a read-only filesystem.
And in general, chmod 777 is a bad idea for any file or directory where the data must be protected. 777 is OK on something temporary like /tmp and /var/tmp (although many sysadmins will use 1777 to limit accidents and other problems with open permissions). 777 means that every user on the system can change the contents of that file or directory.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2011 08:01 AM
07-05-2011 08:01 AM
Re: Problem of chmod
>But it seems that the chmod on the file can work fine, So what is the reason?
Read the WARNINGS under:
http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02264550/c02264550.pdf
For LOFS file systems which are mounted read-only, if the underlying file system is mounted writable,
certain write operations on the LOFS will succeed. Thus LOFS should not be relied upon to provide a
strictly write-only alternative image of a read-write file system.
You should be making your changes in /home/test_sbin/.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2011 07:32 PM
07-05-2011 07:32 PM
Re: Problem of chmod
Ok, i see the man page of the mount_lofs. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2011 01:42 AM
07-06-2011 01:42 AM
Re: Problem of chmod
>I see the man page of the mount_lofs. Thanks!
If you are happy with your answers, please assign kudos.