- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Permission on /tmp
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
09-15-2005 03:47 AM
09-15-2005 03:47 AM
Permission on /tmp
I am a beginner on HP.. I give 777 on all files on directories on /tmp and when I logout and login I see the permission as 677.
Why is it? Even a file or a directory owned by root faces the same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 03:52 AM
09-15-2005 03:52 AM
Re: Permission on /tmp
# umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 03:54 AM
09-15-2005 03:54 AM
Re: Permission on /tmp
it is really strange since permissions on /tmp always should be 777.
Something into /.profile to launch chmod?
Can you post output by
ll -d /tmp
It also should be owner 'bin' and group 'bin' (bin:bin).
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 03:56 AM
09-15-2005 03:56 AM
Re: Permission on /tmp
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 04:03 AM
09-15-2005 04:03 AM
Re: Permission on /tmp
The umask is 022.
I tried changing the owner to bin and bin but still the same issue.. The version is HP 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 04:05 AM
09-15-2005 04:05 AM
Re: Permission on /tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 04:07 AM
09-15-2005 04:07 AM
Re: Permission on /tmp
The permission changes even if I dont reboot or even log out from a telnet session
It changes after a few minutes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 04:10 AM
09-15-2005 04:10 AM
Re: Permission on /tmp
say
# touch /tmp/fred
# chmod 777 /tmp/fred
# ll /tmp/fred
you get 777, but wait a few minutes, do
# ll /tmp/fred
again and suddenly its 677?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 04:27 AM
09-15-2005 04:27 AM
Re: Permission on /tmp
You are right
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 04:41 AM
09-15-2005 04:41 AM
Re: Permission on /tmp
drwxrwxrwt 8 root root 8192 Sep 14 18:05 tmp
Note thet "t". Do this to get the result:
chmod +t /tmp
Then see if the perms change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 04:53 AM
09-15-2005 04:53 AM
Re: Permission on /tmp
Please check or post your /etc/checklist file. It might be an issue with nosuid.
Thanks
Giri Sekar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 05:01 AM
09-15-2005 05:01 AM
Re: Permission on /tmp
The change in permissions like that does not happen by itself. Something has to be runningn a chmod somewhere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 05:04 AM
09-15-2005 05:04 AM
Re: Permission on /tmp
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 06:01 AM
09-15-2005 06:01 AM
Re: Permission on /tmp
then it is an HP-UX 11.23 system....well, in this HP-UX version /tmp has to be
drwxrwxrwt root root ... /tmp
Then
chmod 1777 /tmp
and see if it changes yet.
Effectively it seems a problem due to a cron job or something wherever is changing permissions on /tmp. It seems something like daemons under /etc/inittab....as if just /tmp permissions change then a respawn operation reports them to 677....yet very strange behaviour! ...and yet unexplainable!
Please for my (and I think our) curiosity let us know how the story ends...
Thanks and regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 03:20 PM
09-15-2005 03:20 PM
Re: Permission on /tmp
# mkdir /tmp/log
# chown bin:bin /tmp/log
# ls -ld /tmp/log
# chmod 777 /tmp/log
# ls -ld /tmp/log
# umask
# logout and login
# ls -ld /tmp/log
# umask
Post your /etc/profile and $HOME/.profile for that user who logged.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 04:24 PM
09-15-2005 04:24 PM
Re: Permission on /tmp
Thanks for all ur inputs.
I had trieds all these inputs earlier but in Vain.. there are no cronjobs running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 07:52 PM
09-15-2005 07:52 PM
Re: Permission on /tmp
# fuser /tmp
and
# ps -ef | grep "/tmp"
To see if anything is running against /tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 07:58 PM
09-15-2005 07:58 PM
Re: Permission on /tmp
# umask
# mkdir /tmp/log
# chown bin:bin /tmp/log
# ls -ld /tmp/log
# chmod 777 /tmp/log
# ls -ld /tmp/log
# umask
# logout and login
# ls -ld /tmp/log
# umask
Post your /etc/profile and $HOME/.profile for that user who logged.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 08:14 PM
09-15-2005 08:14 PM
Re: Permission on /tmp
I have tried the steps you had given.. The same problem.
Pls find enclosed the requested profile and the .profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2005 01:58 AM
09-16-2005 01:58 AM
Re: Permission on /tmp
while :
do
ll -d /tmp
sleep 1
done
Once you see the permissions repeating, logout from your other window. If they immediately change, there is a logout script running. As you've probably already seen, 677 is a very bad permission for /tmp and breaks many processes that need the ability to search directories (that's the x bit for directories), definitely not normal and prbably created by a well-intentioned but mis-informed root user.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2005 02:14 AM
09-16-2005 02:14 AM