Home > Cannot Create > Cannot Create Directory Useradd

Cannot Create Directory Useradd


Thread Tools Search this Thread Display Modes #1 23rd October 2005, 09:06 PM Jantje Offline Registered User Join Date: Oct 2005 Location: Mechelen, Belgium Age: 36 Posts: 24 Already have an account? How can a Cleric be proficient in warhammers? That's the right tool for the job. Source

If you have any further questions regarding this, please let us know. Those are serious!!! *Problem Exists Between Keyboard And Chair Seriously, glad you got it going! Probability of All Combinations of Given Events Work done by gravity How did early mathematicians make it without Set theory? Not the answer you're looking for?

Useradd Cannot Create Directory In Linux

I have check the permissions of useradd: it is not allowed to do anything with a directory labelled 'public_content_t', which is the label of '/var/ftp'. Solutions? Ok. adduser and addgroup can be run in one of five modes: useradd you have to add all options yourself.

From man useradd: useradd is a low level utility for adding users. 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 Please keep it on the public boards. Useradd: Cannot Create Directory /home/oracle How do I get this error to stop so I can add new users?

Ansible member jimi-c commented Apr 22, 2014 @kiranos ok to close this then? Ansible Useradd Cannot Create Directory Moreover, looking at the -d option: -d, --home HOME_DIR The new user will be created using HOME_DIR as the value for the user's login directory. Wien's oscillator - amplitude stabilization with Zeners (loop's gain) Is adding the ‘tbl’ prefix to table names really a problem? session required pam_mkhomedir.so This is particularly useful if your system is on a network where the users are managed externally to your machine, by LDAP for instance.

Last edited by mkudro; 27th January 2012 at 11:44 AM. Mkdir Cannot Create Directory Permission Denied Linux terminal=pts/0 res=failed' Testing with setenforce 0 - it works as expected. I have set the chmod to 777 on both files but it's not I have also tried chown -R user /homeI still seem to be getting the same errors? Real numbers which are writable as a differences of two transcendental numbers What is exactly meant by a "data set"?

Ansible Useradd Cannot Create Directory

But when i execute: Code: useradd -b /somedir someuser I get error message: Code: useradd: cannot create directory /somedir/someuser Audit log gives me this: Quote: type=ADD_GROUP msg=audit(1327508269.955:464): user pid=0 uid=0 auid=0 http://www.linuxforums.org/forum/red-hat-fedora-linux/189467-useradd-cannot-create-directory-home.html type=ADD_GROUP msg=audit(1374795412.304:351): pid=881 uid=0 auid=0 ses=1 subj=unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 msg='op=adding group acct="testftp" exe="/usr/sbin/useradd" hostname=? Useradd Cannot Create Directory In Linux Terms Privacy Security Status Help You can't perform that action at this time. Useradd Home Directory Not Created Join Date Mar 2009 Posts 13 Can you paste the output of the below command.

Is it safe to use cheap USB data cables? http://skimwp.org/cannot-create/cannot-create-directory-bash.php The plan is to have the user's home be in a separate location than the location of a normal users home directory. Including permissions and some other things.adduser does this based on sane defaults (and also adds home dir by itself). Ask Ubuntu works best with JavaScript enabled Register a domain and help support LQ Blogs Recent Entries Best Entries Best Blogs Blog List Search Blogs Home Forums HCL Reviews Tutorials Articles Useradd With Home Directory

Thread Tools Search this Thread Display Modes #1 25th January 2012, 05:23 PM mkudro Offline Registered User Join Date: Apr 2010 Posts: 80 SElinux denies creating home dir Or do I miss something? How do I get this error to stop so I can add new users? 04-06-2011 #2 meton_magis View Profile View Forum Posts Private Message View Articles Linux Enthusiast Join Date Oct http://skimwp.org/cannot-create/cannot-create-directory.php Copying files from `/etc/skel' ...

mkudro View Public Profile Find all posts by mkudro #4 25th January 2012, 07:39 PM Skull One Offline Registered User Join Date: Jun 2010 Location: Lost... Useradd: Cannot Create Directory /opt/splunk Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap - Main Menu Linux Forum Android Forum Chrome OS Forum Search LQ but my goal was to make it all in one effort.

You signed in with another tab or window.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding MembersPowered by vBulletin Copyright 2000 - 2012, vBulletin Solutions, Inc. share|improve this answer answered Nov 10 '13 at 11:10 OmPS 37918 add a comment| up vote 6 down vote Look at /etc/defaults/useradd if you want to change the defaults. Hot Network Questions Do students wear muggle clothing while not in classes at Hogwarts (like they do in the films)? Remove User Linux Find all posts by giulix #3 23rd October 2005, 09:32 PM Jantje Offline Registered User Join Date: Oct 2005 Location: Mechelen, Belgium Age: 36 Posts: 24 yes, I

Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. terminal=pts/0 res=success' type=AVC msg=audit(1327508269.975:466): avc: denied { create } for pid=9486 comm="useradd" name="masterkong" scontext=unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=dir type=SYSCALL msg=audit(1327508269.975:466): arch=c000003e syscall=83 success=no exit=-13 a0=228e050 a1=0 a2=22c6600 a3=6165726373662f72 items=0 ppid=9085 pid=9486 auid=0 uid=0 Having a problem logging in? Check This Out Reason: spelling mkudro View Public Profile Find all posts by mkudro #7 27th January 2012, 04:05 PM rhatdan Offline Registered User Join Date: Feb 2007 Posts: 29 Re:

Adding new group `testuser' (1002) ... Greek letters do not function inside tabular even with dollar sign Why is using `let` inside a `for` loop so slow on Chrome? 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 Why cast an A-lister for Groot?

In your case: Code: # semanage fcontext -a -e /home /somedir # restorecon -R -v /somedir __________________ :confused: Skull One View Public Profile Find all posts by Skull One #3 Or over ssh? In my case it was a box where I was playing with nfs mounts at an earlier point in time and due to that, issues were showing up now with creating UNIX is a registered trademark of The Open Group.

mkdir /home/linda chown linda:linda /home/linda try logging in again and this should work. addr=? After this change my code produces same results on all servers. All the subtree will be labelled correctly.

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc. Powered by vBulletin Version 4.2.2Copyright ©2000 - 2016, Jelsoft Enterprises Ltd. What do you get if you add ls -l /usr right before that useradd call? That wouldn't be it.

Let's be paranoid and secure our penguins, and slam the doors on privacy exploits. Thanks! I tried searching forum for this problem , but could not find any post regarding this . Maby it's that..