Comments (7)
from ksmbd.
hm... I can copy dummyéa from windows(7,10) to cifsd share. Are you using the latest cifsd ?
from ksmbd.
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.
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.
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.
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.
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)
- I use my phone to access ksmbd by SMBv1,I clicked on the shared directory, but I couldn't access it. I tried several times. Caused kernel panic. HOT 8
- When SMBv1 is used to write files, only 512-byte data is transmitted in a datagram, resulting in poor performance. HOT 8
- Cannot compile on Debian11 HOT 3
- Does ksmbd support openldap user authentication? HOT 3
- How do you maintain the code HOT 1
- when oplocks is enable,kernel painc occurs when files are written. HOT 6
- Auth failure from Windows client HOT 4
- new crash log HOT 2
- Unable to load module HOT 30
- ksmbd: error while processing smb2 query dir rc = 1 HOT 10
- Is Printing and Printer sharing support in Ksmbd ? HOT 2
- wrong disk size HOT 18
- [Suggestion] Issue templates HOT 1
- page fault HOT 11
- PFIF website is spam now HOT 1
- Failed to copy files on the iphone! HOT 3
- kernel NULL pointer dereference, address: 0000000000000030 HOT 14
- macOS client error HOT 31
- Compile error on Oracle kernel-uek R7 HOT 5
- can't set group write permissions to created files and directories HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ksmbd.