No shift in adduser? not using my previous /home
I finally got x working in slack 10.2, and I'm trying to get it to use my previous /home directory from SuSE. However, when I do adduser, it won't let me enter "RedNovember" (which was my previous user under SuSE). This effectively prevents me from using my previous /home directory. I initially entered "rednovember" before I realized that this was the case.
So I guess I have 2 questions. How do I completely get rid of references to "rednovember", and how do I get Slackware to accept "RedNovember"? I'd really like to be able to use capitalized usernames. I don't really see why this would be prevented, seeing as how SuSE accepted it fine and it's allowed under the filesystem. Appreciate any help, RedNovember |
I'm not sure what the user name length limit is, but if you copy over the files you can use them still, just use chown to change the username/group.
|
I guess I could do that, but it seems like a pain. Plus it would take up twice the disk space if I wanted to dual boot with SuSE. Isn't there some way to get slackware to accept "RedNovember"?
|
Have you tried manually editing /etc/passwd?
Run the adduser script (as root) Set the username to rednovember Set home dir to /home/RedNovember (or whatever it actually is) If asked to chown rednovember.users /home/RedNovember answer NO Finish up adduser edit /etc/passwd and change the rednovember entry to RedNovember |
Also, from the /usr/sbin/adduser script:
# v1.04 - 09/06/02 # * Catered for shadow-4.0.3's 'useradd' binary that no longer # will let you create a user that has any uppercase chars in it # This was reported on the userlocal.org forums # by 'xcp' - thanks. <sw,pjv> (note current version of adduser is 1.09, using shadow 4.0.3) |
I got your first post, but not your second. What does that stuff pertain to, and what does it mean?
|
Quote:
That was just a comment from that script. Apparantly, the version of useradd (from the shadow password suite 4.0.3) included with slack doesn't support uppercase letters in usernames. Seemingly, and somewhat nonsensically, you can still USE uppercase usernames, just not create them with useradd. Hope it worked for you. cheers |
Weirdly enough it did not work. Here are the steps I took: deleted the previous 'rednovember' from /etc/passwd, created the new 'rednovember', edited /etc/passwd to set the name to 'RedNovember'. Now neither 'rednovember' nor 'RedNovember' work for login to slack.
Perhaps slack just won't accept capitalized usernames? Or maybe I didn't delete the previous user enough? Or is it something wrong with my passwd? /etc/passwd: Code:
root:x:0:0::/root:/bin/bash EDIT #2: That wasn't it. Neither were the commas. I'm stuck for an answer. |
Sorry - forgot to add that you'll need to edit /etc/shadow too
|
How so? The same thing?
|
Erm, wouldn't it have been easier to just make a link from "/etc/RedNovember" to "/etc/rednovember"?
|
Quote:
That wouldn't work if his existing home dir is owned by RedNovember and user/group names /are/ case sensitive. He may be able to access/edit files in his existing home dir as he would still be in the group 'users', but then, so could any other user, a bit of a security no-no. Quote:
/etc/passwd: RedNovember:x:1004:100:,,,:/home/RedNovember/:/bin/bash ^username ^UID ^GID ^homedir ^shell /etc/shadow: RedNovember:$1$dNV0anKu$WvKgun.DxISGJ.p4iTxot0:13186:0:99999:7::: ^username ^^hash of password EDIT: Non-fixed width font in posting messed up those examples. |
Sweet, it works now! Granted, KDE is a bit messed up, but that is for another day. Thanks for all the help :)
|
Quote:
Quote:
Quote:
|
Quote:
But it is working now, so it does't matter. |
All times are GMT -5. The time now is 05:18 AM. |