Top TrevorH Forum Moderator Posts: 17097 Joined: 2009/09/24 10:40:56 Location: Brighton, UK Re: adduser: cannot create directory /home/user Quote Postby TrevorH » 2011/10/27 10:48:51 I have also tried chown -R user Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. Note: for redhat it /etc/passwd, so I believe solaris must be having the same path or u can use find. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. weblink
share|improve this answer answered Nov 13 '13 at 20:10 KevinC 1139 Good advice, thanks. –tchakravarty Nov 13 '13 at 22:17 add a comment| up vote 3 down vote Add The time now is 07:49 PM. If home directory is not getting created and no entry is there then you can make an entry of it manually in the /etc/passwd file and your home directory should get Ski Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving...
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. Please check the "man" for more details of useradd :)eNJOY Mohammed Tanvir Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Home Forum Today's Posts | FAQ | Calendar | Community Groups | Forum Actions Mark Forums Read | Quick Links View Site Leaders | Unanswered Posts | Forum Rules Articles Marketplace
As explained in man adduser: adduser and addgroup add users and groups to the system according to command line options and configuration information in /etc/adduser.conf. useradd -u 123 -g 12 -d /export/home -m rohit Suppose if using autofs, you need to create an directory Top This thread has been closed due to inactivity. Add the following line to that file. ... Useradd Cannot Create Directory Home Oracle Why does top 50% need a -50% translate offset?
Lab colleague uses cracked software. Useradd With Home Directory In Linux Password Forgot Password? Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... Adding new user `testuser' (1002) with group `testuser' ...
Here is a functional nsswitch.conf that is using Winbind to authenticate: passwd: files winbind shadow: files winbind group: files winbind hosts: files dns winbind bootparams: files ethers: files netmasks: files winbind Mkdir Cannot Create Directory Permission Denied Linux Departing from airport before visa is valid, but arriving when it is Find the rate of change at a point on a polynomial What is the significance of the robot in terminal=pts/0 res=failed' # setenforce 0 # useradd testuser # echo $? 0 # tail /var/log/audit/audit.log type=ADD_GROUP msg=audit(1380792349.214:308): pid=24522 uid=0 auid=0 ses=1 subj=unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 msg='op=adding group acct="testuser" exe="/usr/sbin/useradd" hostname=? Thanks!
Comment 8 Tomas Mraz 2013-11-27 05:14:03 EST The correct way to do this is: semanage fcontext -a -e /home /tmp/new_home mkdir /tmp/new_home restorecon /tmp/new_home useradd -d /tmp/new_home/tester tester I verified that 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. Ansible Useradd: Cannot Create Directory Code: lsattr -d / lsattr -d /home Or is the disk broken? Useradd Home Directory Not Created LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat useradd: cannot create directory /home/ User Name Remember Me?
Ansible member jimi-c commented Apr 22, 2014 @kiranos ok to close this then? have a peek at these guys Blueprint for Delivering IT-as-a-Service - 9 Steps for ... drwxr-xr-x 30 root root 4096 Mar 31 00:09 . Marking this thread [SOLVED] for posterity. Useradd: Cannot Create Directory /opt/splunk
Not copying any file from skel directory into it. # echo $? 0 I don't think this is correct behaviour. Bug? On Debian, administrators should usually use adduser(8) instead. http://rinfix.com/cannot-create/useradd-cannot-create-directory-var-www-path-to-your-dir.html They are friendlier front ends to the low level tools like useradd, groupadd and usermod programs, by default choosing Debian policy conformant UID and GID values, creating a home directory with
Click here to see the post LQ members have rated as the most helpful post in this thread. Remove User Linux share|improve this answer answered Nov 10 '13 at 11:05 Rinzwind 143k18279387 add a comment| up vote 0 down vote If /home/linda is not present before you add linda as a user, I'll try it again later and see if I can reproduce it again.
If you insist on using the wrong tool, you will have to manually create the home directory and the user groups and copy the default files from /etc/skel etc., etc. up vote 6 down vote favorite 2 I created a new user (testuser) using the useradd command on an Ubuntu server Virtual machine. naresh_10684 replied Oct 21, 2006 Hi Rohit, We can create home directory by using useradd command with -d option. Man Useradd It will create the home directory.
Including permissions and some other things.adduser does this based on sane defaults (and also adds home dir by itself). Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Join Date Jun 2012 Posts 8 dmesg smartctl -i /dev/sda smartctl -x /dev/sda give very very weird output . this content sudo useradd --create-home linda share|improve this answer edited Sep 17 at 7:51 Thomas 8551515 answered Sep 17 at 6:21 Abel Tom 315 add a comment| Your Answer draft saved draft
Ask questions about Fedora that do not belong in any other forum. but i am writing a shell script using useradd command only –rajcoumar Feb 1 '15 at 11:36 @rajcoumar OK, then you have to either create everything manually, or just Mohammed Tanvir replied Jul 16, 2006 Hi Yes, I also faced same problem, then what I did firstly I created a home dir inside the /export dir then after I got