Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What caused /tmp permission changed from 1777 to 755 after rebooting?

0 views
Skip to first unread message

h...@ucdavis.edu

unread,
Feb 29, 2000, 3:00:00 AM2/29/00
to
Hi, All,
I have a Sun machine running Solaris 2.6. I noticed that /tmp
permission changed from 1777 to 755 (also ownership changed from sys to
root) each time the machine is rebooted. I lookup around the start up
and shutdown scripts, but could not find out who causes this.
Does anybody have any idea where to find the bad guy?
Thanks,

Christine


NC

unread,
Feb 29, 2000, 3:00:00 AM2/29/00
to
Start-up scripts would be a good start...

h...@ucdavis.edu wrote in message <38BC6248...@ucdavis.edu>...

Hello World

unread,
Mar 2, 2000, 3:00:00 AM3/2/00
to h...@ucdavis.edu

I'm not on the Sun system, it's a bit complicated to explain, but
here is how to fix it.

1_ Comment out the /tmp line in /etc/vfstab
2_ Shut the system down
3_ Reboot in single user mode
4_ Change mode to 1777
5_ Uncomment the /tmp in /etc/vfstab
6_ Kick the system to go in multiuser mode

That did the tricks for me. Hope this helps.

--

h...@ucdavis.edu wrote:
>
> Hi, All,
> I have a Sun machine running Solaris 2.6. I noticed that /tmp
> permission changed from 1777 to 755 (also ownership changed from sys to
> root) each time the machine is rebooted. I lookup around the start up
> and shutdown scripts, but could not find out who causes this.
> Does anybody have any idea where to find the bad guy?
> Thanks,
>
> Christine

--

- My valid address is: vi...@oz.net

* Please remove "NO-SPAM" in my address to reply. *

satish_...@my-deja.com

unread,
Mar 2, 2000, 3:00:00 AM3/2/00
to
In article <89l5jr$s5s$0...@216.39.141.224>,

Hey. The permission after reboot has to be 755 as this will safeguard your
temprory files from being deleted by some programs. So leave it that way.


Sent via Deja.com http://www.deja.com/
Before you buy.

Tony Walton

unread,
Mar 2, 2000, 3:00:00 AM3/2/00
to
satish_...@my-deja.com wrote:
>
> In article <89l5jr$s5s$0...@216.39.141.224>,
> Hello World <vi...@NO-SPAM.oz.net> wrote:
>
> > h...@ucdavis.edu wrote:
> > >
> > > Hi, All,
> > > I have a Sun machine running Solaris 2.6. I noticed that /tmp
> > > permission changed from 1777 to 755 (also ownership changed from sys to
> > > root) each time the machine is rebooted. I lookup around the start up
> > > and shutdown scripts, but could not find out who causes this.
> > > Does anybody have any idea where to find the bad guy?
> > > Thanks,
> > >
> > > Christine
> > I'm not on the Sun system, it's a bit complicated to explain, but
> > here is how to fix it.
> >
> > 1_ Comment out the /tmp line in /etc/vfstab
> > 2_ Shut the system down
> > 3_ Reboot in single user mode
> > 4_ Change mode to 1777
> > 5_ Uncomment the /tmp in /etc/vfstab
> > 6_ Kick the system to go in multiuser mode
> >
> > That did the tricks for me. Hope this helps.
> >
>
> Hey. The permission after reboot has to be 755 as this will safeguard your
> temprory files from being deleted by some programs. So leave it that way.


Not on /tmp they shouldn't. The mode suggested by "Hello World" (1777)
is correct.
Otherwise how on earth do you expect user processes to write to /tmp ?

Tony

Chuck Douglas

unread,
Mar 2, 2000, 3:00:00 AM3/2/00
to
satish_...@my-deja.com wrote:
>
> In article <89l5jr$s5s$0...@216.39.141.224>,
> Hello World <vi...@NO-SPAM.oz.net> wrote:
> >
> > I'm not on the Sun system, it's a bit complicated to explain, but
> > here is how to fix it.
> >
> > 1_ Comment out the /tmp line in /etc/vfstab
> > 2_ Shut the system down
> > 3_ Reboot in single user mode
> > 4_ Change mode to 1777
> > 5_ Uncomment the /tmp in /etc/vfstab
> > 6_ Kick the system to go in multiuser mode
> >
> > That did the tricks for me. Hope this helps.
> >
> > --

> >
> > h...@ucdavis.edu wrote:
> > >
> > > Hi, All,
> > > I have a Sun machine running Solaris 2.6. I noticed that /tmp
> > > permission changed from 1777 to 755 (also ownership changed from sys to
> > > root) each time the machine is rebooted. I lookup around the start up
> > > and shutdown scripts, but could not find out who causes this.
> > > Does anybody have any idea where to find the bad guy?
> > > Thanks,
> > >
> > > Christine
> >
> > --
> >
> > - My valid address is: vi...@oz.net
> >
> > * Please remove "NO-SPAM" in my address to reply. *
> >
>
> Hey. The permission after reboot has to be 755 as this will safeguard your
> temprory files from being deleted by some programs. So leave it that way.
>

Leaving it that was is NOT what you want. There are programmes that
create lock files in the /tmp directory and if the permission is 755, they
will not be able to delete new lock files to start up.

In Solaris, the permissions on the /tmp should be 1777. Go check it out
for yourself.

--
Chuck (茶気) Douglas -- chuc...@gol.com
"I don't pretend I have all the answers/Just the obvious ones"
--_Backbone_ by Baby Animals
Homepage down until further notice.


0 new messages