Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I set up a FreeNAS box a while ago and against better judgement, used an uppercase character when creating my username. This has led to a directory called George.

Now, when I later read that uppercase characters were highly discouraged, especially in the use of Samba (which I'm using), I decided I'd like to try and repair this.

What steps should I take to rename a user account from mixed uppercase to all lowercase, bearing in mind that data already exists for this user?

share|improve this question

1 Answer 1

up vote 6 down vote accepted
  • Edit the username, groupname and home path in the passwd file with vipw
  • Edit the groupname in the group file with vipw -g
  • Rename your homefolder with mv
share|improve this answer
1  
...and next time trust your better judgment :-) (Really, most users can't remember which are the upper-case letters in their passwords. Letting users have upper-case letters in their usernames just doubles the chance for mistakes.) –  voretaq7 Aug 7 '13 at 19:04
    
vipw did the job for the user, but I had to change the case in /etc/group too. –  deed02392 Aug 7 '13 at 19:06
    
@deed02392: You are right. I forgot about that. I edited the answer. –  Christopher Perrin Aug 7 '13 at 19:08
    
And what a beautiful edit it was. Cheers. –  deed02392 Aug 7 '13 at 19:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.