Results 1 to 14 of 14

Thread: Samba is readonly!

  1. #1

    Samba is readonly!

    Since 1.8.1.7-3 my Samba share "share$" is only readonly!
    smb.conf is okay and writable is on.
    My usb device is mounted rw and over telnet i can write and read as is like!

  2. #2
    Quote Originally Posted by alpha5
    Since 1.8.1.7-3 my Samba share "share$" is only readonly!
    smb.conf is okay and writable is on.
    My usb device is mounted rw and over telnet i can write and read as is like!
    I've had the same trouble.
    In order to work, you only have to replace the user 'root' by the user 'admin' in smb.conf, since there's no 'root' user but admin is 'root' !

    Happy new year !

    Oldudu

  3. #3
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    As a note: The samba config which comes with the custom firmware is just an example. It is not meant for a working system.

  4. #4
    oaky, changed from "root" to "admin"
    everything is okay now.
    thank you :-)

  5. #5
    Join Date
    Mar 2005
    Location
    Taiwan
    Posts
    8

    Question

    How to change user root to admin??
    Do I need to rename it in /etc/passwd??

    I got the same problem

    I create an account named pengs and my smb.conf below.

    ------------------------------------
    [global]
    security = user
    encrypt passwords = yes
    smb passwd file = /etc/smbpasswd
    local master = yes


    [data$]
    path = /tmp/harddisk/backup
    writable = yes
    write list = pengs
    public = yes

    ------------------------------------

    but I still can't have write acces when I use account 'pengs'.

    what can I do to get write access??

    Thanks

  6. #6
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    I know you use a different security strategy then me (share vs. user) but this is my smb.conf which works perfectly for me:
    Code:
    $ cat /etc/smb.conf
    [global]
            workgroup = WORKGROUP
            guest account = nobody
            security = share
            browseable = yes
            guest ok = yes
            guest only = yes
            log level = 1
            max log size = 100
            encrypt passwords = no
            dns proxy = no
    [share]
            path = /tmp/harddisk/
    [share$]
            path = /tmp/harddisk/
            writable = yes
            force user = admin
            browseable = no

  7. #7
    Join Date
    Mar 2005
    Location
    Taiwan
    Posts
    8

    Post

    I tried and it could let me write no. Thanks.

    But I found another problem.
    The folder and file can't using other language like chinese character.

    Anyone get the same problem as I got??
    Thanks again.

  8. #8
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    The Chinese charset is probably not in the kernel. Search this forum, there's been another question about this.

  9. #9
    Join Date
    Mar 2005
    Location
    Taiwan
    Posts
    8

    Question

    Is it possible to implement charset=big5 and codepage=950 in the kernel?
    Or how to build up the kernel with big5 support?

  10. #10
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Yes it is possible to add the codepages to the kernel, you just need to compile your own.

    Search this forum on how to do this, also check http://wl500g.dyndns.org

  11. #11
    I'm trying to setup Samba too, but I'm even not able to view the smb.conf - I think it doeesn't exitst - although I run "smbd" and "nmbd". Do I have to reset my router? Can I setup my old config then?
    FW: 1.9.2.7-3c (Oleg)
    tia
    Simon

  12. #12
    Join Date
    Mar 2005
    Location
    Taiwan
    Posts
    8

    Question

    I'm using firmware 1.9.2.7-3c and trying to recompiler it to support codepage 950 when I using samba.

    but compliler will fail if I follow the web when using make.

    anyone could tell me how to compiler it to let samba support codepage 950 and unicode??

    I'm too pool to know how to compiler kernel and I think I do need the detail instruction about this.

    Many thanks.

  13. #13
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    @simon:
    smb.conf is in /etc. If you telnet to your router then you can issue the following command:
    Code:
    cat /etc/smb.conf
    Which should show the contents of the file.

  14. #14
    I know that I could show the file in this way, if the file would exist. But it doesn't

    simon

Similar Threads

  1. Replies: 0
    Last Post: 12-06-2005, 17:13

Posting Permissions

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