LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-24-2003, 04:03 PM   #1
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Rep: Reputation: 15
root unable to create directories in /home?


I stumbled on this after a seemingly successful installation of Solaris 9 on a Sparc Ultra 60.

In trying to add a new user using admintool, the process failed because it couldn't create the user's directory in /home. So, as root, I cd over to /home and discover that I can't even mkdir in that directory, manually. The error message I get is mkdir: failed to make directory "foo"; Operation inapplicable.

I do an ls and look at the permissions for /home and they are dr-xr-xr-x. I tried:
chmod 755 home
chmod u+w home
chmod 755 /home
chmod u+w /home

and none of the above work. I get the error message "can't change home"

I even tried cd-ing into the /home directory and:
chmod 755 .
chmod u+w .

Still no luck. Any thoughts? Thanks.

Last edited by cpv204; 11-24-2003 at 04:05 PM.
 
Old 11-24-2003, 06:31 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,347

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
"Any thoughts?"

Is /home a mount point? It is often hard to change the permissions on a mount point. If so then umount /home, change the permissions, and mount it again.


-----------------------
Steve Stites
 
Old 11-25-2003, 07:54 AM   #3
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Are you running the autohome for user directories? This may prevent you from creating user directories in /home. Try disabling this or put your user directories in /export/home.
 
Old 11-25-2003, 07:58 AM   #4
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Original Poster
Rep: Reputation: 15
jailbait, That is a great suggestion, one that I would never have thought of. However, that's not the answer in my case. I think.

/export/home is a mount point, but I don't think there is any connection between that and /home. I looked closely, /export/home is not a symlink to /home or vice versa.

The whole problem seems really strange. A standard, default install not letting you set up new users because root can't write in the /home directory? What will they think of next?

Last edited by cpv204; 11-25-2003 at 07:59 AM.
 
Old 11-25-2003, 08:04 AM   #5
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Original Poster
Rep: Reputation: 15
stickman, I don't know if I'm running autohome, where can I check that? I tried man autohome and there is no entry. I tried autohome --help and the command is not found.
 
Old 11-25-2003, 10:28 AM   #6
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Original Poster
Rep: Reputation: 15
stickman, I did some Googling and found out about auto_home, and I did indeed have auto_home active. So you were right too, jailbait, /home was being used as a mount point, even though it was not listed when I issued the mount command. And users home directories belong in /export/home/.

I'm guessing that this setup is advantageous if your /export/home resides on another disk or even another server. My /export/home is on the same disk as the rest of my installation. Would there be any disadvantage to me disabling auto_home and just using /home for my users home directories? If I decided to do this, would this gum up the works for other applications or processes expecting to find a user's home directory in /export/home?

Thanks once again.
 
Old 11-25-2003, 10:33 AM   #7
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
auto_home uses /home as the mount point for user directories in /export/home that it is configured to use.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Unable to create directories satimis Linux From Scratch 8 07-02-2005 04:48 AM
Can't create directories in /proc keripukki Linux - Software 3 09-03-2004 01:26 PM
Create several directories? AutOPSY Linux - Newbie 3 03-30-2004 07:51 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM

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

All times are GMT -5. The time now is 02:56 PM.

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