- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sh: /var/tmp/sh7877.13: Cannot create the spec...
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
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
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
тАО11-16-2016 03:46 AM - edited тАО11-16-2016 03:48 AM
тАО11-16-2016 03:46 AM - edited тАО11-16-2016 03:48 AM
Re: sh: /var/tmp/sh7877.13: Cannot create the specified file.
>chown / chmod 777 was run by mistake on /usr. It was later fixed by going to single user.
Did you use the super dangerous chmod -R? Fixed how? Did you try "swverify -F"?
>[oracle@recoverednode][oracle]>ll -d /var/tmp
drwxrwxr-t 8 root root 8192 Nov 15 19:22 /var/tmp
The way to fix this is to use: chmod o+w /var/tmp
Don't ever be tempted to use use obsolete octal numbers, always use symbolic form.
># chmod 777 /var/tmp
This isn't the right fix, it removes the "t" (sticky) bit. Now you have to use: chmod u+t /var/tmp
>if that file already exists in that directory and is owned by someone else, then a new user won't be able to create a new one.
I had that happen with rogue here docs, filled it up with tens of thousands of sh*.* files.
>unless that "t" is actually significant.
Only for security enforcement.
>pro3$ chmod 1777 fred
Or chmod a=rwx,u+t fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2016 04:13 AM
тАО11-16-2016 04:13 AM
Re: sh: /var/tmp/sh7877.13: Cannot create the specified file.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2016 04:56 AM
тАО11-16-2016 04:56 AM
Re: sh: /var/tmp/sh7877.13: Cannot create the specified file.
> Don't ever be tempted to use use obsolete octal numbers, always use
> symbolic form.
Because ...?
> IMHO the recovered system is not recovered and at risk.
Clearly, some damage remains.
> restoring ignite backup would be [a] safe option.
Comparing the affected files with equivalent files on an undamaged
system should help. "swverify -F" should help. "swverify" can't fix
non-OS files (about which it knows nothing), comparison works only for
common files, and backup works only for files older than the backup.
All of which serves as a reminder of why it pays to give the "root"
password to only those who have some idea of how much they don't know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2016 10:54 PM
тАО11-19-2016 10:54 PM
Re: sh: /var/tmp/sh7877.13: Cannot create the specified file.
>Because ?
Because of problems like this. I.e. using "chmod 777 -R". If you used "chmod a+w -R", you would only have security problems.
- « Previous
-
- 1
- 2
- Next »