LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2013, 01:34 PM   #1
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Rep: Reputation: Disabled
cant add new users for home directory keep getting errors no matter wich script i run


can some one pls help me i am running wifislax/kde 4.10.1 i have been to wifislax forum and no one is willy to help me i reinstaled wifislax thinking it mite solve the problem but no when i run adduser it takes username and so on the at end i get this error :
useradd: cannot create directory /home/agent1
- Error running useradd command -- account not created!
(cmd: /usr/sbin/useradd -d /home/agent1 -m -g users -s /bin/bash agent1)

i have tryed useradd with no luck in the end i download kuser wich did make me account but wont work ther is not diractory made for user agent

when i log out and try to log in as agent i get this error:
cant log in as /

i dont understand for some reason it just not working i done system update that didnt work i have googled it and tryed lots of thing but nothing works

pls if anyone has a solition to this i would be most gratefull

when i reinstalled wifislax i made 3 partions
1)=swap
2)=ext4 dev/sda [this is where i installed wifislax}
3)ext4 dev/sda (this has nothing on it but named it home as i would like my home file system

about os

kde 4.10.1
wifislax 4.4
Slackware 14.0
3.7.10-wifislax kernel
i686
i dont understand how all 3 scripts adduser,useradd,kuser just wont make new user with non root home directory
thaks pls help me if you no how

Last edited by highrolla; 04-06-2013 at 01:36 PM.
 
Old 04-06-2013, 01:46 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,171
Blog Entries: 1

Rep: Reputation: 325Reputation: 325Reputation: 325Reputation: 325
Hi

Did you run the command as root?
 
Old 04-06-2013, 01:57 PM   #3
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
yes i am loged in as root
 
Old 04-06-2013, 02:01 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,171
Blog Entries: 1

Rep: Reputation: 325Reputation: 325Reputation: 325Reputation: 325
Hi

Try
Code:
adduser
 
Old 04-06-2013, 02:03 PM   #5
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
this is the out put
bash, version 4.2.37(2)-release
/bin/sh -> /bin/bash
Binutils: (Linux/GNU Binutils) 2.22.52.0.2.20120424
bison (GNU Bison) 2.5.1
/usr/bin/yacc -> /usr/bin/yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.19
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /bin/gawk-3.1.8
gcc (GCC) 4.7.1
(GNU libc) 2.15
grep (GNU grep) 2.14
gzip 1.5
Linux version 3.7.10-wifislax (root@wifislax) (gcc version 4.7.1 (GCC) ) #1 SMP PREEMPT Mon Mar 25 13:37:42 UTC 2013
m4 (GNU M4) 1.4.16
GNU Make 3.82
GNU patch 2.7
Perl version='5.16.3';
GNU sed version 4.2.1
tar (GNU tar) 1.26
version-check.sh: line 33: makeinfo: command not found
Texinfo:
xz (XZ Utils) 5.0.4
gcc compilation OK
 
Old 04-06-2013, 02:05 PM   #6
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
i have tryed adduser,useradd,kuser
 
Old 04-06-2013, 03:15 PM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,171
Blog Entries: 1

Rep: Reputation: 325Reputation: 325Reputation: 325Reputation: 325
Hi

I just tried that cmd on my slack os and all went well. Dose agent1 exsist, if not have you tried
Code:
useradd agent1
dose that create the user
 
Old 04-06-2013, 04:41 PM   #8
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
i have made user agent now with kuser but cant log into it getting this error at login screen:

"cant log in as / " what dose / = root i take it i just dont get
 
Old 04-06-2013, 04:49 PM   #9
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,171
Blog Entries: 1

Rep: Reputation: 325Reputation: 325Reputation: 325Reputation: 325
Hi when logged in as agent can
Code:
su - root
 
Old 04-06-2013, 05:46 PM   #10
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
i cant log in as agent did you read my first post
 
Old 04-06-2013, 06:01 PM   #11
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,171
Blog Entries: 1

Rep: Reputation: 325Reputation: 325Reputation: 325Reputation: 325
What is in your fstab file

and the output of
Code:
ls /
 
Old 04-06-2013, 06:31 PM   #12
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
/dev/sda2 / auto defaults 1 1
# Do not edit this file as fstab is recreated automatically during every boot.
# Please use /etc/rc.d/rc.local or sysvinit scripts if you want to mount/unmount drive,
# filesystem or network share.

# System mounts:
aufs / aufs defaults 0 0 # AutoUpdate
proc /proc proc defaults 0 0 # AutoUpdate
sysfs /sys sysfs defaults 0 0 # AutoUpdate
devtmpfs /dev devtmpfs defaults 0 0 # AutoUpdate
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0 # AutoUpdate

# Device partitions:
/dev/sda3 /mnt/sda3 ext4 auto,noatime,nodiratime,suid,dev,exec,async 0 0 # Autoupdate
/dev/sdb1 /mnt/sdb1 vfat auto,noatime,nodiratime,suid,dev,exec,async,umask=0,check=s,utf8 0 0 # Autoupdate

# Swap partitions:
/dev/sda1 none swap sw,pri=1 0 0

above is fstab

Descargas/ Diccionarios-WPA/ build/ swireless/ version-check.sh
Desktop/ Downloads/ kde-workspace-4.10.2.tar.xz trunk/ wget-log
wifislax ~ #

above ls

i found on another site truck something to do with postgres wich has giveing me login screen with post gres on boot down now says multi user mode i dont realy no what i done but the truck file i changed propertes and made rw this is the link to the page ther is a 3 min vid at bottom this is what i followed probly have to reinstall thats not a proble i just what to have non root user

this link if ypu reed the 5 posts above vid it explanes what i done thaks for your help

http://foro.seguridadwireless.net/co...956/#msg256956

thanks
 
Old 04-08-2013, 05:06 PM   #13
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,665
Blog Entries: 10

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Most Linux systems would require that you set a passwd for a new user before you can login as that user?


Login as root:
Code:
useradd newuser
passwd newuser
Logout as root and then you should be able to login as the newuser
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How we can run script for muliple home(users) karan4141 Linux - Newbie 9 08-30-2012 08:51 AM
How to run a bashscript no matter what directory u stand in? kickarzt Linux - Newbie 4 03-16-2010 07:53 AM
Script to Auto-add Domain Users to Workstation Power Users Group doesn't work avinash.rao Ubuntu 0 08-22-2009 05:57 AM
Script to add a secondary group to all users except system default users Tekken Linux - Server 5 06-29-2009 05:02 PM
Add to path of all users home Dir. abovenbeyond Linux - Server 1 12-18-2007 06:27 PM


All times are GMT -5. The time now is 01:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration