LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-02-2009, 10:22 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
Cant write to /tmp


My problem is that regular user (other than root) cant write to /tmp
Just in case I put chmod 777 /tmp but it did not change anything.

I discovered that problem during I was trying install Oracle 10.

Does anyone know where should I look for problem ?
 
Old 06-02-2009, 10:27 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

777 is not correct that should be 1777. I.e: chmod 1777 /tmp, as root user.
 
Old 06-02-2009, 12:33 PM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
I dont have access to that system right now - will check it tomorrow but...
I tryed on other system to chmod 777 /tmp and regular users still have access to it.
 
Old 06-02-2009, 12:46 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

True, when changing permissions to 777 everybody will be able to write and remove everybody's(!!) files..... Not what is wanted.

The 1777 mode change makes sure that any user can write to the /tmp directory, but cannot remove other user's files from them. The latter is prohibited by the so-called sticky bit, the highest bit (1) in the 1777 bit mask.

This also applies for /var/tmp.
 
Old 06-02-2009, 06:33 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by czezz View Post
My problem is that regular user (other than root) cant write to /tmp
That isn't a problem but the purpose of /tmp. Everyone has to be able to create files on /tmp (and /var/tmp) otherwise many applications will break.

The specific 1777 permission is there to prevent non-root users to remove or change permissions of other user's files.
 
Old 06-03-2009, 01:45 AM   #6
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
Hi guys,
I just checked and you are right. Now regular users has write permission.

What Im trying to do now is to install oracle. Never had a problem with that before but not this time .

When I start runInstaller, it shows me this error:

Code:
$ ./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5.8, 5.9 or 5.10.    Actual 5.10
                                      Passed

Checking Temp space: must be greater than 250 MB.   Actual 1836 MB    Passed
Checking swap space: must be greater than 500 MB.   Actual 1919 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-06-03_08-27-07AM. Please wait ...
Error in writing to directory /tmp/OraInstall2009-06-03_08-27-07AM. Please ensure that this directory is writable and h
as atleast 69 MB of disk space. Installation cannot continue.
: Error 0
Well... Im sure now that /tmp is writeable. Also space is almopst 2G. Any ideas ?
 
Old 06-03-2009, 01:59 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Only thing I can come up with: Are you running the oracle installer as root or as oracle user? If I remember correctly the oracle user should run it and _not_ root.

Hope this helps.
 
Old 06-03-2009, 02:19 AM   #8
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
oracle user ofcurse:
Code:
$ id
uid=300(oracle) gid=300(dba)
 
Old 06-03-2009, 02:28 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi again,

If I understand correctly you already tried this procedure (installing oracle) before. Did you remove anything that oracle left behind?

To clear that up a bit: Did oracle create the /tmp/OraInstall2009-06-03_08-27-07AM dir already in a previous session?

There is enough space on /tmp (oracle checked that: Checking Temp space: must be greater than 250 MB. Actual 1836 MB Passed), /tmp has the correct permissions. That leaves the OraInstall2009-06-03_08-27-07AM directory.

Try cleaning up as much as possible and try again.

I have to admit that I'm grasping at straws atm, but maybe, just maybe this will help
 
Old 06-03-2009, 03:22 AM   #10
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
Exectelly, I cleaned up system after each try - didnt help.
I just took another server and installed it without any problems.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xsession cannot write to /tmp flebber Ubuntu 5 05-03-2006 12:26 AM
Xsession: warning: unable to write to /tmp whatpot Linux - Newbie 2 11-04-2005 09:17 AM
X won't login normal users (cannot write to /tmp) R00ts Linux - Software 6 09-03-2005 01:25 AM
Apache/PHP can't write to /tmp dir. Niels@debian Linux - Software 2 05-25-2005 03:10 PM
eroaster tmp file write davidschob Linux - Software 4 11-05-2003 09:36 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration