Coder Social home page Coder Social logo

Comments (7)

sergey-senozhatsky avatar sergey-senozhatsky commented on August 30, 2024

from ksmbd.

namjaejeon avatar namjaejeon commented on August 30, 2024

hm... I can copy dummyéa from windows(7,10) to cifsd share. Are you using the latest cifsd ?

from ksmbd.

Haythem-Zd avatar Haythem-Zd commented on August 30, 2024

I was behind by few weeks. So I checked out today the master branches of cifsd and cifs-tools. But I still have the same issue:

root@myDevPC:/home/g179780# mount -t cifs --verbose //192.168.1.254/sda1/ /tmp/share/ -o user=haythem
Password for haythem@//192.168.1.254/sda1/:
mount.cifs kernel mount options: ip=192.168.1.254,unc=\192.168.1.254\sda1,user=haythem,pass=********
root@myDevPC:/home/g179780#
root@myDevPC:/home/g179780#
root@myDevPC:/home/g179780# cd /tmp/share/
root@myDevPC:/tmp/share# ls
raspby.img SAMBA System Volume Information test
root@myDevPC:/tmp/share#
root@myDevPC:/tmp/share# mv test testé
mv: cannot move ‘test’ to ‘testé’: Remote I/O error
root@myDevPC:/tmp/share#
root@myDevPC:/tmp/share#
root@myDevPC:/tmp/share# cp /home/haythem/Desktop/dummyé .
cp: cannot create regular file ‘./dummyé’: Input/output error

First I tried to rename the file "test" to "testé", then copy the file "dummyé" from my desktop to the share.
As you can see, both commands fail due to a I/O error.
On server side, I had these messages:

kcifsd: cifsd_vfs_rename:976: test▒ lookup failed with error = -84
kcifsd: cifsd_vfs_create:76: path create failed for /mnt/sda1/dummy▒, err -84

Also, after getting the latest version, I lost the guest acount access and now only users added by cifsadmin are granted access. My smb.conf file:

[global]
        netbios name = mytarget
        workgroup = home
        server string = mytarget Sharing Files
        map to guest = bad user
[sda1]
        comment = Share sda1 directory
        path = /mnt/sda1
        browsable = yes
        available = yes
        guest ok = yes
        writeable = yes

Usually, map to guest = bad user should do the trick. It is not working anymore.

from ksmbd.

namjaejeon avatar namjaejeon commented on August 30, 2024

root@linkinjeon-Samsung-DeskTop-System:/mnt# mount.cifs -o vers=3.0,username=namjae,pass=1234 /.88.103.232/homes2 /mnt/read
root@linkinjeon-Samsung-DeskTop-System:/mnt# cd /mnt/read/
root@linkinjeon-Samsung-DeskTop-System:/mnt/read# cp /home/linkinjeon/test/dummyéa .
root@linkinjeon-Samsung-DeskTop-System:/mnt/read# ls -al
total 131056
drwxr-xr-x 2 root root 0 Dec 31 1969 .
drwxr-xr-x 4 root root 4096 Jan 23 02:51 ..
-rwxr-xr-x 1 root root 59904 Dec 31 1969 dummyéa
-rwxr-xr-x 1 root root 134192815 Jun 4 2015 linux-3.10.28.tgz
drwxr-xr-x 2 root root 0 Dec 31 1969 lost+found

hmm.. It work fine on my side. I think that it is character set issue on client side.

linkinjeon@linkinjeon-Samsung-DeskTop-System:~$ env | grep LANG
LANG=en_US.UTF-8
LANG is set with UTF-8 on my client PC, Could you check which character-set is used on your PC ?

Usually, map to guest = bad user should do the trick. It is not working anymore.

Ah, Thanks for reporting! I fixed and push the patch to master now.

from ksmbd.

namjaejeon avatar namjaejeon commented on August 30, 2024

Ah, there is iocharset option in cifs mount.
Could you try to add iocharset option in mount ?
e.g. mount -t cifs --verbose //192.168.1.254/sda1/ /tmp/share/ -o iocharset=utf8,user=haythem

from ksmbd.

Haythem-Zd avatar Haythem-Zd commented on August 30, 2024

My client PC's LANG is set to en_US.UTF-8 too. I think it is because of the target (server side) which is an embedded device with limited resources (Custom embedded Linux + busybox). I already had issues with the UTF16 charsets in cifsd user space (It always fallback to USC-2).

If you have no further suggestions/ideas about this you can close this issue.

PS: the last revert in cifs-tools brought back the guest access. Thanks :)

from ksmbd.

namjaejeon avatar namjaejeon commented on August 30, 2024

Ah, Okay, I would like to check last points. Could you tell me which CONFIG_NLS_DEFAULT is set in your kernel config ? and let me know your linux kernel version.

from ksmbd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.