After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 577740 - "invalid argument" error on permission issue
"invalid argument" error on permission issue
Status: RESOLVED NOTGNOME
Product: gvfs
Classification: Core
Component: smb backend
1.2.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2009-04-02 15:51 UTC by Sebastien Bacher
Modified: 2009-04-03 09:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2009-04-02 15:51:55 UTC
the bug has been opened https://bugs.launchpad.net/bugs/220434

"$ gvfs-move smb://10.1.1.2/w/rocko/javaprojects/javamail-1.4/demo/README.txt .
Error moving file smb://10.1.1.2/w/rocko/javaprojects/javamail-1.4/demo/README.txt: Invalid argument

and the copy part of the command works (ie I can see README.txt in . after issuing the command), but the delete fails.

On the server, this file has these permissions:

-r--r--r-- 1 rocko rocko 11402 2006-04-19 23:13 README.txt

1. Using samba, share a folder 'test' as 'test' on your local machine (with read/write permissions). In the folder, create an empty document 'test1' and make it read-only.

2. Navigate to this folder in nautilus, ie smb://localhost/test, and use the cut command (ctrl-x) on the empty document 'test1'.

3. Navigate to another folder (eg your home folder) and use the paste command (ctrl-c).

Nautilus successfully copies the file 'test1' and then says that it cannot copy [sic] it due to 'invalid parameter'.

If you want to show that the copy was successful, just put some text into test1 before copying it."
Comment 1 Alexander Larsson 2009-04-03 08:16:49 UTC
I don't get "invalid argument", I get "permission denied":

gvfs-move smb://maurice/data/temp/git-book.pdf .
Error moving file smb://maurice/data/temp/git-book.pdf: Permission denied

This error is returned by libsmbclient, not gvfs itself. So, I would say it depends on the samba version. I have samba 3.2.8, which one does it fail with?
Comment 2 Sebastien Bacher 2009-04-03 08:34:32 UTC
samba version is 3.3.2 there
Comment 3 Sebastien Bacher 2009-04-03 09:31:50 UTC
the issue is a samba one rather