Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: net usershare add: share name is already a valid system user name

  1. #11
    Join Date
    Sep 2008
    Location
    Netherlands
    Beans
    372
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: net usershare add: share name is already a valid system user name

    Thank you.
    I only want to share the dir as 'Games,' nothing else.
    Is it save to try deleting that user?

  2. #12
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: net usershare add: share name is already a valid system user name

    Looks like my system already has backups of passwd and shadow, but before I deleted the games user, I'd want a current backup/copy to use if something went very wrong. Then, depending on your courage, you could either sudo deluser, or just edit the username in the two files (change it to something like gamer. Either way might break something.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #13
    Join Date
    Sep 2008
    Location
    Netherlands
    Beans
    372
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: net usershare add: share name is already a valid system user name

    So it actually is possible to permanently fck up Ubuntu when renaming/deleting the user?

  4. #14
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: net usershare add: share name is already a valid system user name

    ...removing the home directory as option or even all files on the system owned by the user to be removed, running a custom script, and other features.
    From man deluser - with the right options, everything owned by the user could be deleted. If you decide that wasn't the thing to do...
    The default action by deluser may not be quite so drastic. Renaming may make the files difficult to get to - but it's reversible.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  5. #15
    Join Date
    Sep 2008
    Location
    Netherlands
    Beans
    372
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: net usershare add: share name is already a valid system user name

    What do you suggest?

    Priority:
    1. System MUST continue working without things messed up.
    2. Sharename should be nothing else then: Games.

  6. #16
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: net usershare add: share name is already a valid system user name

    I'd probably use sudo nano /etc/passwd and sudo nano /etc/shadow to rename the user games to gamer and try the Samba share again.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  7. #17
    Join Date
    Sep 2008
    Location
    Netherlands
    Beans
    372
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: net usershare add: share name is already a valid system user name

    Can you please give the exact commands? (I'm new to Linux.)
    Google search 'sudo nano' didn't had any usefull outputs.

  8. #18
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: net usershare add: share name is already a valid system user name

    man nano lists options, but here are the steps:
    1. CTRL-ALT-F1 (This opens a terminal - actually selects tty1)
    2. Login with your username and password.
    3. Type sudo nano /etc/passwd <ENTER>
    4. [sudo] password for <yourusername>: (enter your password)
    5. Arrow down to games (line #6 on my system)
    6. Arrow right to "s" - use <DELETE> or <BACKSPACE> to delete "s", type "r".
    7. Type CTRL-O (filename will appear above command list)
    8. Press ENTER (this will cause file to be written)
    9. Type CTRL-X ( exits nano).
    10. Type sudo nano /etc/shadow <ENTER>
    11. Repeat step 4, if necessary (System might not ask for password)
    12. Repeat steps 5-9.
    CTRL-ALT-F7 gets back to desktop. Instead of CTRL-ALT-F1, you can also use a terminal from Applications>Accessories>Terminal.

    If you'd prefer to make a backup first, before step 3:
    Type sudo cp /etc/passwd /etc/passwd~
    Type sudo cp /etc/shadow /etc/shadow~
    Last edited by Iowan; October 9th, 2008 at 01:26 AM. Reason: Almost forget to get back to desktop
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  9. #19
    Join Date
    Sep 2008
    Location
    Netherlands
    Beans
    372
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: net usershare add: share name is already a valid system user name

    It's been a busy week but I followed your instructions some minutes ago.

    The backups are saved and the username 'games' is changed to 'gamer.'
    Since then it was possible to share the map 'Games.'

    Thank you very much for you effort and time.

  10. #20
    Join Date
    Jul 2008
    Location
    Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: net usershare add: share name is already a valid system user name

    .. [missed page 2 ]
    Last edited by albinootje; January 20th, 2009 at 01:00 AM. Reason: Errors.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •