Computing.Net > Forums > Unix > permissions on /home directory

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

permissions on /home directory

Reply to Message Icon

Name: Heather B.
Date: April 18, 2002 at 03:58:58 Pacific
Comment:

New to Unix/Solaris:

I just installed Solaris 8 x86 platform on one of my machines and I cant seem to create user profiles. I opened a terminal, typed "useradd" [username], then "passwd" [password] and all was well.

When I tried to login as that user it told me that no such profile exists in the /home directory. I tried to add it both thru the terminal and in the gui but no go. I checked the permissions and they were only read and execute. As root, I tried to chmod 777 ,etc, the directory but it told me I couldnt change the /home directory. I also tried to change the permissions on the directory in the GUI but they were grayed out. Any suggestions?

By any chance would this have anything to do with me taking the PC off the network? When I installed the OS, I set it up for networking and later disconnected the cable without removing the interface. It's still off and will remain off until I'm positive there are no process or services that may interfere on my office network. Could this by some chance have caused a problem? Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: PaulS
Date: April 18, 2002 at 07:06:25 Pacific
Reply:

I never used the GUI interface. From the Shell prompt you should be able to setup an account with:

Add the group first:

# groupadd -g group_id login_name

Check the default home directory:

# useradd -D
If the default home directory is not set to /home then set it (or whatever choice you want.
# useradd -D -b /home

Then add the user account:

# useradd -g group_id -u user_id \
-s /bin/ksh -c "Joe Smith" -m login_name

useradd should copy a rudimentary .profile into /home/login_name



0

Response Number 2
Name: freddie
Date: May 21, 2002 at 19:31:26 Pacific
Reply:

probably not so bright to chmod /home to 777. unless you didnt do it recursively. or you have dumb users....


0

Response Number 3
Name: JohnV
Date: July 3, 2002 at 14:37:20 Pacific
Reply:

I had the same problem, Heather. I tried what PaulS suggested - thanks btw Paul, learned some things - but still my sys didn't like it. So I created a /users instead. If you managed to find a fix I'd like to hear about it.


0

Response Number 4
Name: JimL
Date: July 5, 2002 at 20:03:34 Pacific
Reply:

Heather Said
>I opened a terminal, typed "useradd" [username]

Use the -m switch with useradd to automatically create the user's home directory and copy the default profile from the /etc/skel directory.

> it told me that no such profile exists in the /home directory.
> ...I checked the permissions and they were only read and execute.

The /home directory is reserved for mounting by NFS on Solaris 8. /export/home is the usual place to put the home directories.

> would this have anything to do with me taking the PC off the network?

Only if you set it up to mount home directories from another server.

PaulS said
> Check the default home directory:
>
># useradd -D

You will see something like this:
group=staff,10 basedir=/export/home
skel=/etc/skel shell=/bin/sh

You can set these defaults by running useradd -D again with these switches so running the useradd command will be easier:
-g group (name or number)
-s shell (ie. /bin/bash or /bin/ksh or /bin/tcsh)
-b basedir (where your home directories will be)

> useradd should copy a rudimentary .profile into /home/login_name

That is useradd when you use the -m switch, but /home/ is the wrong place on Solaris 8.



0

Response Number 5
Name: JimL
Date: July 5, 2002 at 20:16:19 Pacific
Reply:

Correction to what I just said about useradd -D

You can't modify the default shell for a new user. Use the -s switch every time you create a new user if you don't want /bin/sh.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: permissions on /home directory

how can i password protect a folder (directory)in unix www.computing.net/answers/unix/how-can-i-password-protect-a-folder-directoryin-unix/577.html

flexibility in file naming schemes?? www.computing.net/answers/unix/flexibility-in-file-naming-schemes/570.html

renaming files based on date arguments www.computing.net/answers/unix/renaming-files-based-on-date-arguments/2499.html