Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd October 2005, 09:06 PM
Jantje Offline
Registered User
 
Join Date: Oct 2005
Location: Mechelen, Belgium
Age: 33
Posts: 24
Useradd problem: cannot create directory

Hello,

When I want to create a new user, and I want it to have a homedirectory with more than one 'level', I get an error-message like this:

[root@localhost ~]# useradd -d /home/verkopers/lies lies
useradd: cannot create /home/verkopers/lies


When I leave one level out, and I take /home/verkopers as the homedirectory, there's no problem. Isn't it possible to create any homedirectory that you want?

greetz

Jan
Reply With Quote
  #2  
Old 23rd October 2005, 09:25 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Try this:

useradd -d /home/verkopers/lies -M lies

You'll have to create the directory yourself, though...
Reply With Quote
  #3  
Old 23rd October 2005, 09:32 PM
Jantje Offline
Registered User
 
Join Date: Oct 2005
Location: Mechelen, Belgium
Age: 33
Posts: 24
yes, I tried that too and it works that way. but my goal was to make it all in one effort. i'm following a self-training Linux-course and this is part of an exercise i'm trying to make...

thanx for your quick reply anyway!
Reply With Quote
  #4  
Old 23rd October 2005, 09:44 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Hopefully someone will come out with a better solution. useradd has been modified on Fedora: I seem to remember that on Solaris, for instance, that used to work...
Reply With Quote
  #5  
Old 23rd October 2005, 09:53 PM
Jantje Offline
Registered User
 
Join Date: Oct 2005
Location: Mechelen, Belgium
Age: 33
Posts: 24
i saw some examples on other distro's where it seemed to work, but if useradd indeed has been modified on Fedora, then maybe it's not possible anymore... thanks for your help, I appreciate it!
Reply With Quote
  #6  
Old 23rd October 2005, 10:23 PM
smfinley's Avatar
smfinley Offline
Retired Community Manager
 
Join Date: Jul 2004
Posts: 1,335
Try "system-config-users" as root.
__________________
Stanton Finley
stanton-finley.net
Reply With Quote
  #7  
Old 24th October 2005, 05:16 PM
Jantje Offline
Registered User
 
Join Date: Oct 2005
Location: Mechelen, Belgium
Age: 33
Posts: 24
Quote:
Originally Posted by smfinley
Try "system-config-users" as root.
That doesn't work: if i change the homedirectory there, i can add an extra file 'level' and he doesn't give an error message, but the directory is not created in real. It stays the same default directory /home/lies. It looks like the 'useradd' command has changed in FC4?

Jan

P.S.: congratulations with your FC4 installation notes, Mr. Finley. They were a fantastic help for a Linux-newbie like me!

Last edited by Jantje; 24th October 2005 at 05:54 PM.
Reply With Quote
  #8  
Old 24th October 2005, 08:26 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
NOTES
The system administrator is responsible for placing the default user
files in the
This version of useradd was modified by Red Hat to suit Red Hat
user/group conventions. /etc/skel/ directory.



(from man useradd)
Reply With Quote
  #9  
Old 24th October 2005, 08:45 PM
Jantje Offline
Registered User
 
Join Date: Oct 2005
Location: Mechelen, Belgium
Age: 33
Posts: 24
good english there those manpages can really be confusing... strange problem though! i've found many examples on forums where it was possible to have a homedirectory with more than one level. but i'm quite new at Linux, so i really can't explain.
Reply With Quote
Reply

Tags
create, directory, problem, useradd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
useradd used with no home directory still shows home dir in passwd file marko Using Fedora 0 15th October 2008 08:30 PM
scp wont create a directory? daviddoria Using Fedora 6 20th June 2008 03:56 PM
unable to create any directory that uses numbers as the directory name fed.linuxgossip Using Fedora 19 8th October 2007 03:51 PM


Current GMT-time: 05:51 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat