LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   adduser and startx problem (http://www.linuxquestions.org/questions/slackware-14/adduser-and-startx-problem-536188/)

yoshikareem 03-10-2007 01:45 AM

adduser and startx problem
 
I just got an old Toshiba laptop, and wanted to check out Linux, so I installed Slackware 11 on it.

Once I boot it I log in as root. I heard that its a good idea to create another user first, before doing anything. So I do adduser and get this:

Code:

Creating new account...

useradd: unable to lock password file
- Error running useradd command -- account not created!

So I just skip that and try to load the GUI.

I type in startx and get this:

Code:

modprobe: Note: /etc/modules.conf is more recent than /lib/modules/2.4.33.3/modules.dep
modprobe: Note: /etc/modules.conf is more recent than /lib/modules/2.4.33.3/modules.dep

What can I do?

Thanks

XGizzmo 03-10-2007 08:30 AM

If you are running a 2.6 kernel you need to install the kernel modules. The installer will only install the 2.4 kernel modules for you. The modules are on the cd/dvd in extra or testing depending on the exact kernel version you used. install them as root with installpkg. Did you do a full install of slack or did you try and trim it down?

yoshikareem 03-10-2007 12:52 PM

I installed the 2.4.33.3 kernel, and yes, I did do a full install.

props666999 03-11-2007 01:37 PM

Hi yoshikareem


Code:

modprobe: Note: /etc/modules.conf is more recent than /lib/modules/2.4.33.3/modules.dep
modprobe: Note: /etc/modules.conf is more recent than /lib/modules/2.4.33.3/modules.dep


did you compile your own kernel after completing the full install?
By default(Slackware 11) headers ,source and modules are 2.4.33





Code:

Creating new account...

useradd: unable to lock password file
- Error running useradd command -- account not created!

reboot the computer and try to add a user again

yoshikareem 03-11-2007 02:06 PM

Quote:

did you compile your own kernel after completing the full install?
After the install I just selected the kernel used during installation.


Quote:

reboot the computer and try to add a user again
I tried rebooting and it still does the same thing.

props666999 03-11-2007 02:26 PM

try adduser instead of useradd

have you got some spare space in your partition?

try df -h

yoshikareem 03-11-2007 03:10 PM

I have been doing adduser the whole time.

I checked to see if I had spare space, and I have none. I think I made the swap partition way too big, so I'm going to try and fix that.

EDIT:
Before I had the swap partition taking up the rest of the hard drive. I just switched it to be double my RAM (128 MB, my RAM is 64 MB). I did df -h, and it still says 0 available space.

props666999 03-11-2007 03:19 PM

you have left no free space to the adduser command to append the
users file.

the swap partition should be double your memory. The full Slackware install is about 3GB,do a full install since the other install options are hard to manage. You can remove the extra staff by using the pkgtool command(as root) and selecting remove to trash the extras.



regards

yoshikareem 03-11-2007 05:06 PM

It works nows! Thank You very much.

I made it where the swap partition started on the 1st cylinder, and then the main partition started after that and used the rest of the hard drive.

Thanks


All times are GMT -5. The time now is 07:04 AM.