Results 1 to 5 of 5

Thread: Can't seem to keep a user after a reboot

  1. #1

    Can't seem to keep a user after a reboot

    Here's the deal:

    I've created a bunch of users which are requires by some apps, and all works fine, but when I reboot, the list of users and groups is reset to the default. Is it because the box is running the fixpasswd.sh (or something like that) script after every boots? If so, I'm assuming I can modify the script safely to add the few users I want. The box won't reboot often, but after a powerfailure, I don't want to have to reconfigure my box.

  2. #2
    Join Date
    Jan 2007
    Location
    The Netherlands
    Posts
    244

    Which user managment thing?

    Do you have Password Based Share Access(PBSA) or User Based Share Access(UBSA) enabled?
    I guess the former.
    In another post you said that you used tmpuseradd, so i think you have PBSA. Otherwise, with UBSA you would be able to create users with the GUI.

    I use PBSA for some odd reasons, and without that fixpasswd.sh I would be left with a passwordless and homeless root user.
    I guess that with PBSA none of your additional users can stand a reboot.

    Try UBSA.

    Regard,
    Marc

  3. #3
    Interesting. When I did that however, I could no longer login because the bash path that it creates under that mode is not valid (So basically I can't telnet). If I knew what that was doing, I could probably replicate that and fix the path correctly. I wonder if it calls that script all the time however to "fix" it when it's running PBSA. I'll try and put something that dumps a file in there on boot-time, so I'll know if that's the culprit. I am guessing it is. If so, I can probably create a master copy of those files and just overwrite them vs creating them at every boot. Overall, it's a painfull process, but sounds do-able.

    Anyone else has any bright ideas?


    Quote Originally Posted by mumsoft View Post
    Do you have Password Based Share Access(PBSA) or User Based Share Access(UBSA) enabled?
    I guess the former.
    In another post you said that you used tmpuseradd, so i think you have PBSA. Otherwise, with UBSA you would be able to create users with the GUI.

    I use PBSA for some odd reasons, and without that fixpasswd.sh I would be left with a passwordless and homeless root user.
    I guess that with PBSA none of your additional users can stand a reboot.

    Try UBSA.

    Regard,
    Marc

  4. #4
    Join Date
    Jan 2007
    Location
    The Netherlands
    Posts
    244
    Quote Originally Posted by ti_chris View Post
    Interesting. When I did that however, I could no longer login because the bash path that it creates under that mode is not valid (So basically I can't telnet). If I knew what that was doing, I could probably replicate that and fix the path correctly. I wonder if it calls that script all the time however to "fix" it when it's running PBSA. I'll try and put something that dumps a file in there on boot-time, so I'll know if that's the culprit. I am guessing it is. If so, I can probably create a master copy of those files and just overwrite them vs creating them at every boot. Overall, it's a painfull process, but sounds do-able.

    Anyone else has any bright ideas?
    Please don't answer first and quote after that.
    I have /opt/home/root and /opt/home/marc.

    Succes
    Marc

  5. #5
    To make users stick you need to be in USBA mode. In this mode, the passwd file is stored on the HDD (/etc/passwd-> /tmp/passwd -> /shares/MYVOLUME1/__pdc/passwd).

    In PBSA, /tmp/passwd is regenerated at power-up. My fixup script adds the "admin" account with a valid shell, in either mode, to facilitate a proper login.

    - K.C.

Similar Threads

  1. Samba - sharing with user rights
    By gromot in forum WL-500g Q&A
    Replies: 1
    Last Post: 08-07-2008, 20:07
  2. how to make SAMBA with user accounts?
    By pparsniak in forum WL-500gP Tutorials
    Replies: 0
    Last Post: 12-05-2008, 20:39
  3. Strange behaviour on reboot.
    By raas in forum WL-500gP Q&A
    Replies: 16
    Last Post: 08-05-2008, 11:55
  4. Nach Neustart USER aus passwd gelöscht
    By carterb in forum German Discussion - Deutsch (DE)
    Replies: 2
    Last Post: 07-02-2008, 17:37
  5. lighttp and php tutorial
    By theboy50 in forum WL-500g/WL-500gx Tutorials
    Replies: 29
    Last Post: 30-01-2008, 18:03

Posting Permissions

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