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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-09-2007, 02:50 AM
|
#1
|
LQ Newbie
Registered: Jan 2007
Posts: 6
Rep:
|
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 02:52 AM.
|
|
|
02-09-2007, 05:04 AM
|
#2
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,793
|
Post your full useradd command.
|
|
|
02-09-2007, 07:49 AM
|
#3
|
LQ Newbie
Registered: Jan 2007
Posts: 6
Original Poster
Rep:
|
Hi,
I am not at home now, i will post it on monday when i am back again..
Thanks;
Joecks
|
|
|
02-09-2007, 08:45 AM
|
#4
|
Member
Registered: Nov 2006
Posts: 344
Rep:
|
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.
|
|
|
02-09-2007, 09:46 AM
|
#5
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,793
|
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.
|
|
|
02-10-2007, 03:31 AM
|
#6
|
LQ Newbie
Registered: Feb 2007
Location: India, Bombay
Distribution: Linux & BSD
Posts: 23
Rep:
|
/etc/auto_master comment out # /home
svcadm disable system/filesystem/autofs:default
mkdir –p /home/yourname
chown yourname /home/yourname
|
|
|
02-10-2007, 04:08 AM
|
#7
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,793
|
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".
|
|
|
02-11-2007, 02:52 AM
|
#8
|
LQ Newbie
Registered: Jan 2007
Posts: 6
Original Poster
Rep:
|
Thank you all for the answers.. I will try out your solutions when i am back home... thanks again !
Greetings,
Joecks
|
|
|
02-12-2007, 02:48 PM
|
#9
|
LQ Newbie
Registered: Jan 2007
Posts: 6
Original Poster
Rep:
|
I disabled automounting of /home , now it works ...
Thanks All....
Joecks
|
|
|
03-03-2007, 12:10 PM
|
#10
|
Member
Registered: Sep 2006
Location: Hendrik Ido Ambacht, Zuid-Holland, Nederland, Europa
Distribution: Ubuntu 12.04; CentOS 6.5
Posts: 137
Rep:
|
Okay i got a question about, how to add a User..
i added a user, but how do i make the user as admin?
|
|
|
03-03-2007, 03:31 PM
|
#11
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,793
|
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::::::
$
|
|
|
All times are GMT -5. The time now is 06:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|