Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 43

Thread: Custom Firmware v1.1.2.8

  1. #16
    Join Date
    Sep 2004
    Location
    NL
    Posts
    206
    You could also try removing the smbpasswd file and then try again. This should work if the smbpasswd is really corrupt

    What's the "-c" option for??
    Last edited by brubber; 29-11-2004 at 22:13.
    Brubber

    WL-500g, WL-138g, WL-160g

  2. #17
    -c option is to specify the path to the config (under JOCKYW2001 advice)

    My smbpasswd is recreated at each reboot, so it's not corrupted. I can only add users with Oleg's smbaddusers, not Jocky's

    Here is the error for a simple
    Code:
    net view \\wl-hdd
    on Windows side:

    Code:
    UNIX token of user 0
    Primary group is 0 and contains 0 supplementary groups
    getsmbfilepwent: returning passwd entry for user admin, uid 0
    getsmbfilepwent: returning passwd entry for user guest, uid 99
    getsmbfilepwent: returning passwd entry for user administrator, uid 0
    getsmbfilepwent: end of file reached.
    pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
    User nobody in passdb, but getpwnam() fails!
    attempting to free (and zero) a server_info structure
    check_ntlm_password: guest authentication for user [] FAILED with error NT_STATUS_NO_SUCH_USER
    push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
    push_conn_ctx(0) : conn_ctx_stack_ndx = 0
    setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
    NT user token: (NULL)
    UNIX token of user 0
    Primary group is 0 and contains 0 supplementary groups
    pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
    check_ntlm_password: unix authentication for user [] FAILED with error NT_STATUS_LOGON_FAILURE
    check_ntlm_password:  Authentication for user [] -> [] FAILED with error NT_STATUS_LOGON_FAILURE
    attempting to free (and zero) a user_info structure
    attempting to free (and zero) a user_info structure
    error string = No such file or directory
    error packet at smbd/sesssetup.c(887) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FAILURE
    s
    To me the error is in the getpwnam() command. Also, maybe this can be a hint:
    Code:
    error string = No such file or directory 
    error packet at smbd/sesssetup.c(887)
    There must be a link missing, or maybe the samba source need more hacking?

    Swat does not run correctly. I can run it from inetd, but it won't answer from port 901
    inetd.conf is created, and services has it's 901 definition.

  3. #18
    Join Date
    Sep 2004
    Location
    NL
    Posts
    206
    So how is the new smbpasswd file created?

    user add script?

    if so shouldn't there be an entry in your smb.conf?

    do you have an /etc/samba/smbusers file?

    if so, what's in there?
    Brubber

    WL-500g, WL-138g, WL-160g

  4. #19
    smbpasswd file is created by Oleg's firmware smbpasswd, not by Jocky's one. That's the problem.

    Also, smbuser exist, but I tryed with or without it. Anyway, I don't see with my guest account= nobody where I can make use of this smbusers.

    my config was working with samba 1.9. Don't forget I'm using Jocky's binary on Oleg's firmware, so there must be some change involved

  5. #20
    Quote Originally Posted by hugo
    smbpasswd file is created by Oleg's firmware smbpasswd, not by Jocky's one. That's the problem.

    Also, smbuser exist, but I tryed with or without it. Anyway, I don't see with my guest account= nobody where I can make use of this smbusers.

    my config was working with samba 1.9. Don't forget I'm using Jocky's binary on Oleg's firmware, so there must be some change involved
    Hugo, please propose a little test which I can carry out on my WL-HDD. Just a little "step-by-step" guide and also post a smb.conf

    JockyW

  6. #21
    Here is my smb.conf


    [admin@wl-hdd root]$ cat /tmp/harddisk/part1/conf/
    usr/local/samba/lib/smb.conf
    [global]
    workgroup = MIDEARTH
    netbios name = wl-hdd
    security = share
    guest account= nobody
    guest ok = yes
    encrypt passwords = no

    [data]
    comment = Data
    path = /tmp/hd
    read only = Yes
    guest ok = Yes

    [admin@wl-hdd root]$

    It is straightforward
    and shouldn't pose any problem. All users have access to /tmp/hd

    you can probably make it work using your firmware, without having to provide an account. Once you get it working, can you try flashing oleg's latest firmware for wlhdd (if you have ext3 format) and just mount -o bind the etc folder to your conf/etc.
    If it can work this way, then it means I need your FW to create users. maybe you can try anything from share browsing or connecting. You should get my problem in this situation.

    Thanks for your help
    Last edited by hugo; 29-11-2004 at 23:27.

  7. #22
    Okay I will see if I can test this in the next hour. Probably it will have to wait until tomorrow morning.

    Here is just something to show how I add users and samba users:
    Code:
    # adduser -h /tmp/harddisk/ -s /bin/sh -G root administrator
    adduser: /tmp/harddisk/: File exists
    Changing password for administrator
    Enter the new password (minimum of 5, maximum of 8 characters)
    Please use a combination of upper and lower case letters and numbers.
    Enter new password:
    Re-enter new password:
    Password changed.
    #
    # smbpasswd -a administrator
    New SMB password:
    Retype new SMB password:
    Added user administrator.
    #
    # more smbpasswd
    admin:0:F0D412BD764FFE81AAD3B435B51404EE:209C6174DA490CAEB422F3FA5A7AE634:[U
          ]:LCT-419A115D:
    nobody:99:AAD3B435B51404EEAAD3B435B51404EE:31D6CFE0D16AE931B73C59D7E0C089C0:[U
            ]:LCT-419A2A53:
    The weird thing is that I don't see 'administrator' in smbpasswd

    [edit]
    Found administrator password in /etc/shadow
    Code:
    # more /etc/shadow
    ftp:x:50:50:FTP User:/tmp/harddisk/:/sbin/nologin
    root:$1$$rfWvn1y7kYtNY4MuebTVo1:0:0:root:/:/bin/sh
    nobody:x:99:99:nobody:/:/sbin/nologin
    admin:$1$$CoERg7ynjYLsj2j4glJ34.:500:500:Linux User,,,:/tmp/harddisk/:/bin/sh
    administrator:$1$$rfWvn1y7kYtNY4MuebTVo1:12751:0:99999:7:::
    Last edited by JOCKYW2001; 29-11-2004 at 23:37.

  8. #23
    The adduser part works

    but the smbpasswd give the same error. It looks it cannot link to the system user database.
    User administrator exist. It is created just before.

    Code:
    [admin@wl-hdd bin]$ ./smbpasswd administrator
    New SMB password:
    Retype new SMB password:
    build_sam_account: smbpasswd database is corrupt!  username administrator with uid 0 is not in unix passwd database!
    Failed to find entry for user administrator.
    Failed to modify password entry for user administrator

    another example:

    Code:
    [admin@wl-hdd bin]$ ./adduser -h /tmp/hd -s /bin/sh -G root jocky
    adduser: /tmp/hd: File exists
    Changing password for jocky
    Enter the new password (minimum of 5, maximum of 8 characters)
    Please use a combination of upper and lower case letters and numbers.
    Enter new password:
    Bad password: too simple.
    
    Warning: weak password (continuing).
    Re-enter new password:
    Password changed.
    [admin@wl-hdd bin]$ ./smbpasswd -a jocky
    New SMB password:
    Retype new SMB password:
    Failed to initialise SAM_ACCOUNT for user jocky. Does this user exist in the UNIX password database ?
    Failed to modify password entry for user jocky
    Some other example: User jocky can login:
    Code:
    [admin@wl-hdd bin]$ login jocky
    Password:
    [jocky@wl-hdd hd]$ cd bin
    [jocky@wl-hdd bin]$ ./smbpasswd -a jocky
    -sh: ./smbpasswd: Permission denied
    [jocky@wl-hdd bin]$ exit
    [admin@wl-hdd bin]$ ./smbpasswd -a admin
    New SMB password:
    Retype new SMB password:
    build_sam_account: smbpasswd database is corrupt!  username admin with uid 0 is not in unix passwd database!
    Failed to initialise SAM_ACCOUNT for user admin. Does this user exist in the UNIX password database ?
    Failed to modify password entry for user admin
    Last edited by hugo; 30-11-2004 at 11:52.

  9. #24
    Hugo, perhaps your problem can be solved by relaxing the file permissions somewhat. Login as root, change to the hdd root dir and 'chmod -R 777 *'

    PS: I'm not a Samba specialist either and I still wonder why user 'administrator' is not shown in smbpasswd in in my previous posting
    Last edited by JOCKYW2001; 30-11-2004 at 13:08.

  10. #25
    I'm sure my permission are ok. It must be the kernel. I'm going to try tonight with your FW, and it will probably be ok. Then I'll try to switch back to Oleg's one and see how it goes.

    For info, using vsftpd gives me also an error 500, cannot find user ftp. Of course, user ftp do exist in passwd. As this is your default vsftpd config file and that my setup was the same under your .7 version, it must be something about system calls for users, not really samba

  11. #26
    Quote Originally Posted by hugo
    I'm sure my permission are ok. It must be the kernel. I'm going to try tonight with your FW, and it will probably be ok. Then I'll try to switch back to Oleg's one and see how it goes.

    For info, using vsftpd gives me also an error 500, cannot find user ftp. Of course, user ftp do exist in passwd. As this is your default vsftpd config file and that my setup was the same under your .7 version, it must be something about system calls for users, not really samba
    Hmm, I can remember that I had similar problems in the pas weeks. One thing I had to do was to reconfigure /etc/ld.so.conf (adding /tmp/.../usr/lib) and recreate /etc/ld.so.cache

    You find ldconfig in /tmp/.../conf/bin
    After recreating ld.so.conf and ld.so.cache you probably have to put them in the original /etc and in the mounted /etc

    I'm pretty sure that this might solve your issues.

  12. #27
    Thats it

    Thanks a lot. The ldconfig did the trick. I'm going to test speed tonight

  13. #28
    Thinks are smoother. Not too much faster, but faster anyway. My divx now play smoothly on my old pocket pc. I'm sure it will perform like a charm on newer ones.

    Also, this give a new option to use Oleg's firmware with your conf file, so you get best of both world (except nfs I guess as it is not in kernel support, but a quick config change my solve this)

    I'll post a how-to to thank you for this later this week.

  14. #29
    I have made an update to the custom firmware last night. It now allows NFS blocksizes up to 32768 bytes ('rsize' and 'wsize'). This quite dramatically improves NFS performance.

    Those who already downloaded the 34MB package (1.1.2.8-custom.zip) only have to download the new firmware file here:
    http://website.wl500g.info/beta/firmware.php?fid=5

    JockyW
    Last edited by Antiloop; 08-08-2005 at 10:49.

  15. #30
    Hi, good job !
    Sorry to disturb you but do you known when you will release your source code ?
    I want to install a speedtouch USB ADSL modem, for this I need compile the kernel.
    I have free time, may I help you ?

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Custom Firmware v1.1.2.7
    By JOCKYW2001 in forum WL-HDD Firmware Releases
    Replies: 59
    Last Post: 11-12-2004, 13:26
  2. New custom firmware
    By Oleg in forum WL-500g Custom Development
    Replies: 7
    Last Post: 13-08-2004, 13:54
  3. New custom firmware - 1.7.5.6-1
    By Oleg in forum WL-500g Custom Development
    Replies: 26
    Last Post: 30-04-2004, 09:05
  4. custom firmware
    By Oleg in forum WL-500g Custom Development
    Replies: 30
    Last Post: 17-03-2004, 09:38

Posting Permissions

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