PDA

Bekijk de volledige versie : Samba is readonly!



alpha5
03-01-2005, 10:51
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!

oldudu
03-01-2005, 11:23
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

Styno
03-01-2005, 18:49
As a note: The samba config which comes with the custom firmware is just an example. It is not meant for a working system.

alpha5
03-01-2005, 20:00
oaky, changed from "root" to "admin"
everything is okay now.
thank you :-)

pengs
04-03-2005, 20:48
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

Styno
05-03-2005, 12:54
I know you use a different security strategy then me (share vs. user) but this is my smb.conf which works perfectly for me:
$ 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

pengs
05-03-2005, 20:12
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?? :confused:
Thanks again.

Styno
05-03-2005, 20:25
The Chinese charset is probably not in the kernel. Search this forum, there's been another question about this.

pengs
07-03-2005, 05:36
Is it possible to implement charset=big5 and codepage=950 in the kernel?
Or how to build up the kernel with big5 support?
:confused: :D

Styno
07-03-2005, 08:12
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

simon04
08-03-2005, 21:00
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

pengs
09-03-2005, 08:50
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.

Styno
09-03-2005, 09:24
@simon:
smb.conf is in /etc. If you telnet to your router then you can issue the following command:

cat /etc/smb.confWhich should show the contents of the file.

simon04
09-03-2005, 20:37
I know that I could show the file in this way, if the file would exist. But it doesn't

simon