LinuxQuestions.org
Visit Jeremy's Blog.
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 02-09-2007, 01:50 AM   #1
Joecks
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Rep: Reputation: 0
Adding a user


Hi,

Topic should be : Adding a users in Nexenta.... sorry
I have a problem and i can't figure out why it is happening.....

I have figured out that the home dirs are not /home but /export/home.

I want to add a user with "administration - users and groups" but i cant set the home directory to /export/home/user , everytime it is set back to /home/user

When i try the command adduser , i get this :

Creating home directory `/home/user'.
couldn't create /home/user: Operation not applicable

Greetings,

Joecks

Last edited by Joecks; 02-09-2007 at 01:52 AM.
 
Old 02-09-2007, 04:04 AM   #2
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
Post your full useradd command.
 
Old 02-09-2007, 06:49 AM   #3
Joecks
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Hi,

I am not at home now, i will post it on monday when i am back again..

Thanks;

Joecks
 
Old 02-09-2007, 07:45 AM   #4
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
What's Nexenta?

My understanding is that it should be /home... The user's dir is mounted from /export/home onto /home on login in Solaris.
 
Old 02-09-2007, 08:46 AM   #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
Nexenta, also known as Gnu/Solaris, is an opensolaris based distribution.

It is true home directories living in /home are by default automounted, but there are some configuration steps for that to work.
 
Old 02-10-2007, 02:31 AM   #6
abs_77
LQ Newbie
 
Registered: Feb 2007
Location: India, Bombay
Distribution: Linux & BSD
Posts: 23

Rep: Reputation: 15
/etc/auto_master comment out # /home

svcadm disable system/filesystem/autofs:default

mkdir –p /home/yourname
chown yourname /home/yourname
 
Old 02-10-2007, 03:08 AM   #7
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 abs_77
/etc/auto_master comment out # /home

svcadm disable system/filesystem/autofs:default
Yes, disabling home automounting is also a solution, although it breaks a useful feature.

If you comment out /home in auto_master, there is no need to disable autofs service as you may want to keep automounting "/net".
 
Old 02-11-2007, 01:52 AM   #8
Joecks
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you all for the answers.. I will try out your solutions when i am back home... thanks again !

Greetings,

Joecks
 
Old 02-12-2007, 01:48 PM   #9
Joecks
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I disabled automounting of /home , now it works ...

Thanks All....

Joecks
 
Old 03-03-2007, 11:10 AM   #10
LAN-Dominator.nl
Member
 
Registered: Sep 2006
Location: Hendrik Ido Ambacht, Zuid-Holland, Nederland, Europa
Distribution: Ubuntu 12.04; CentOS 6.5
Posts: 137

Rep: Reputation: 15
Okay i got a question about, how to add a User..

i added a user, but how do i make the user as admin?
 
Old 03-03-2007, 02:31 PM   #11
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
With Solaris, you can grant this user some or all privileges.

Start by reading the privileges, user_attr and usermod manual pages.

Here is an example on how to grant the "foo" user the right to read any file, whatever the permissions:

Code:
$ id
uid=100000(foo) gid=100000
$ ls -l /etc/shadow
-r--------   1 root     sys          427 Mar  3 21:02 /etc/shadow
$ grep foo /etc/shadow
grep: can't open /etc/shadow
$ su
Password: ********
# usermod -K defaultpriv=basic,file_dac_read foo
# su - foo
Sun Microsystems Inc.   SunOS 5.11      snv_54  October 2007
$ id
uid=100000(foo) gid=100000
$ grep foo /etc/shadow
foo:nMTsULrp/ZtgU:13575::::::
$
 
  


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
adding a new user Cinematography MEPIS 5 07-25-2005 09:19 PM
adding a user nicolas9510 Red Hat 9 01-27-2005 04:18 PM
adding user paschim Linux - Newbie 4 06-27-2004 05:05 AM
Adding user desbyleo Linux - Newbie 3 02-18-2002 07:15 PM
user adding sathu Linux - Newbie 1 02-12-2002 05:19 AM

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

All times are GMT -5. The time now is 12:25 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