Can't extract files on samba share
It happens like this, I open Konqueror and locate a zip file on my samba server. I right click > extract to <folder> and it then gives me a pop up saying, "The extraction operation failed" and below in a box within the pop up it has a bunch of mumbo jumbo saying things like chmod operation not permitted and cannot create <folder>. I'd c/p the entire thing but it won't let me.
I also try in the command line, like this: Code:
unzip D2_2.59.zip Code:
tar: gnash-0.8.4/pythonmodule/gnashpython.h: Cannot open: No such file or directory Here is my smb.conf: Code:
[GLOBAL] |
I am not quite sure what you are trying to do.
Are you trying to extract a file on a remote computer? It is obvious that you have a permission issue. If you are using Konqueror to extract the file, what are the permissions for the file? Right click on the file and select properties. Select the permissions tab. Who owns the file? I suggest to use commandline instead of konqueror. |
Quote:
Check the smb.conf on your Samba server. You will need 'readonly = no' in your share definition if you want all users to be able to write or else 'valid users = <user name> <user name1>' 'writelist = <user name> <user name1>' in your share definition if you want to restrict write access to specified users |
Sorry,
I just read your post more closely and noticed that the share definition in your smb.conf looks OK. Check the directory permissions on the mount point of your Samba share. Linux file permissions override those set within smb.conf. |
I tried the options write list and readonly and restarted samba but no luck.
I did chown -R hedron:users /path/to/share/folder and still the same problem. The maddening thing is that I can copy and move files, either within the share folder or between both computers, move files to the trash, empty trash, etc but I just can't extract files. Is there some sort of special permissions or user ID that unzip or tar uses that I would need to add to smb.conf? Maybe it uses some odd user name that interferes with the write process. I can even open a zip file from within konqueror and view text files, though it doesn't seem to want to let me execute files, but I don't think that has anything to do with the problem. EDIT: I think I've figured out the problem, or at least I noticed an inconsistency. My user has ID 1000 on the client PC but ID 1001 on my server PC. 1000 is a user account I use solely for ssh. I'm just unsure how to proceed without royally screwing up permissions. I think it would be easiest to create a second user account on my client PC, changing its ID to 1000 and my normal accounts ID to 1001. I'm just unsure how this would affect permissions I have already. Of course, there is always: chown -R ./* Plus, I'm not convinced that this would even work. |
Try editing /etc/passwd on the client PC and changing ID from 1000 to 1001. If it fixes the problem then you have found the cause. When I have done this it has worked OK, but it has only been when I have recently done a new install and the system in use for only a short time. I have had problems with the change of user ID, but they were simple to fix and the number of changes were minor. If your user data installed base is large, then the task may be a lot more work.
|
I just wanted to post to say that changing the user ID worked. In case someone else has a similar issue. I will try and come back to edit this post if there is some major issue, but I don't think there will be one.
|
Thanks for reporting back. I am pleased that you were were able to resolve the problem to your satisfaction.
|
All times are GMT -5. The time now is 01:36 PM. |