- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unusual file permission resulting occasionally whe...
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
06-24-2005 07:41 AM
06-24-2005 07:41 AM
It seems to me that the cp command, for whatever reason, just doesn't finish and therefore permissions are never applied to the file.
The machine is a J9000 running HP-UX 10.20.
If more information is needed, I will gladly provide it. I'm inclined to tell the user to just deal with it since the machine is VERY old and will, most likely, be taken out of service within the year.
Any information/thoughts as to why this may be occurring are greatly appreciated.
Thanks!
Randy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2005 07:47 AM
06-24-2005 07:47 AM
Re: Unusual file permission resulting occasionally when cp'ing a file.
Are you moving file or copying it??
fuser -u /dir/your_file
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2005 07:52 AM
06-24-2005 07:52 AM
Solutionfailing and the mode is left at 000. The chmod is not done until the copy operation finished; however, unless the sticky bit is set on the directory; if the user has write permission on the directory, he can remove the file. Permissions on the file have nothing to do with the ability to remove the file. It would seem rather easy to add a few extra if's to the script to fix this. I suspect the cp command is receiving a signal and aborting or the filesystem is running out of space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2005 08:20 AM
06-24-2005 08:20 AM
Re: Unusual file permission resulting occasionally when cp'ing a file.
This has only been seen on the HP machine. The same script is being run in a linux environment and has never seen this problem.
The user has write perms to that directory and there is no sticky bit on the directory, but the user still cannot remove the file.
This script works as expected 99% of the time. This is only an occasional occurrence, but it is a pain when it occurs.
Thank you for your prompt responses. This Forum is great!
Randy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2005 08:27 AM
06-24-2005 08:27 AM
Re: Unusual file permission resulting occasionally when cp'ing a file.
Do this as a test:
Create a file as root (or another user) in a directory writable by you as a regular user.
echo "Test" > myfile
chmod 000 myfile
ls -l myfile to make sure it is ----------.
Now as yourself, rm -f myfile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2005 08:51 AM
06-24-2005 08:51 AM
Re: Unusual file permission resulting occasionally when cp'ing a file.
Now I'm wondering if I'm getting accurate information from the user. What are the odds of that? ;-)
I'll have them notify me the next time it happens and see what the circumstances are first hand. I think something's being lost somewhere.
Thanks again for the response!
Randy