[SOLVED] File Sharing Error between Window 7 and Ubuntu 11.04 system
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
File Sharing Error between Window 7 and Ubuntu 11.04 system
Dear forum members,
I have a ubuntu 11.04 system and a lappy with window 7 system on it.I have got samba set up on the ubuntu system so that file sharing is enable between them.However,when I put my files in my samba share and access it from the window 7 laptop.I got some errors as per attach files.I like to know the solution to solve the problems.
probably it's something with the permissions in Samba/linux folder, try give all the files for start "chmod 777" and see what will happen.
Then try to configure your Samba share to allow anyone in the folder to R/W:
Code:
# This one is useful for people to share files
[Shared folder]comment = Shared folder <--- change this name Shared folder to whatever you want
path = /path/to/folder
read only = no
browseable = yes
writable = yes
guest ok = yes
public = yes
and I hope you will not get any errors anymore (I presume that the Shared folder has also 777).
Let's just first establish which directory do you want to share/allow access to
I will take your:
[Documents]
path = /home/dell/Documents
then you FIRST change to that dir or somehow select it and then do the "chmod 777 *" <-- * means every file in that directory, but if you have any subdirs in it then use "chmod -R 777 *" (but first you have to change the current directory to the one you want to do this operation in it - let's presume "cd /home/dell/Documents")
then put the
Code:
[Documents]comment = Documents <--- change this name to whatever you want as it will appear in the Network neighbourhood
path = /path/to/folder
read only = no
browseable = yes
writable = yes
guest ok = yes
public = yes
after the [Pictures] definitions
path = /home/dell/Pictures
read only = No
guest ok = Yes
If you find the message helpful, or you approve what is posted, click the "Add to Reputation" button, on the left of the post.
I not familiar with GUI in linux
so,
1. to do the "chmod" open Xterm (terminal window) and do it like written (be careful in which directory you are - check with pwd in command line, it will display you where you are
Code:
/etc/samba#>pwd
/etc/samba
)
2. I'm not familiar with swat either so my recommendation would be to change the Samba settings to that directory (on your picture below attached) like:
- leave Owner - Create / delete
- change Group -> Create/delete
- change Others -> Create/delete
it will be probably the same as if you would put the config lines written above in post #4, if not, then in terminal edit the "/etc/samba/smb.conf" file and insert the lines
Code:
vi /etc/samba/smb.conf
... paste the lines ...
exit with ESC key then,
:x <enter> (that is a colon and x - meaning save and exit)
restart samba (? service smb restart ?)
Hi lithos,
I am sorry for the late reply.I got this error as below when opening /etc/samba/smb.conf. Will there be any problem?
(gedit:3232): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.O33WXV': No such file or directory
(gedit:3232): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(gedit:3232): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.BIUMXV': No such file or directory
(gedit:3232): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(gedit:3232): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.YZ8NXV': No such file or directory
(gedit:3232): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
I have put the new config files as below, is that correct
[Documents]
path = /home/dell/Documents
read only = no
writeable = yes
; browseable = yes
guest ok = yes
public = yes
Hi lithos,
After inserting the new config files as below,I am able to copy,paste and cut from the ubuntu desktop to the window 7 laptop without the permission problem.
[Documents]
path = /home/dell/Documents
read only = no
writeable = yes
; browseable = yes
guest ok = yes
public = yes
But I see another problem which I hope u can explain to me. When I copy a file from my ubuntu desktop to be share with my window 7 laptop,a lock icon on the file will appear.Is that normal?But I can copy,cut and paste the file from the desktop to the laptop without any problem.Is that all right?
if it's ok with you to let the operations on the files (read/write/cut.. delete ?) than it's ok nevermind the lock icon.
but I'm not familiar with Gtk nor Ubuntu so my suggestions are limited.
maybe someone familiar with Ubuntu could help more.
Hi Lithos,
Sorry to trouble u again.Some failure on my system and I have to reinstall my whole system.After getting done,I install samba and re-set up my share folders.My problem is that I cannot share the folders that are out of the user Home Directory.As I have 2 HDD on my system, most of the data are in the 2nd HDD which ubuntu name it as New Volume.I see an advise as per link attach http://ubuntuforums.org/showthread.php?t=490058 but I do not know understand how to do it.
Well, that would be hard to guess how to make it done (I'm not into Ubuntu, sorry)
but the basics would be to share that directory with new [Documents] section , which you should add to the existing, like:
Code:
[Old-Documents]
comment = Old-Documents <--- change this name to whatever you want as it will appear in the Windows Network neighbourhood
path = /path/to/folder <--- this should be your new directory you want to share on the 2nd HDD "New Volume", be sure it's mounted (cmd: mount)
read only = no
browseable = yes
writable = yes
guest ok = yes
public = yes
Hi lithos,
Below is the solution for the problem I face on file sharing between the window 7 laptop and ubuntu system.
The second harddisk is not mounted automatically on the Ubuntu Desktop System on start up.Therefore I will need to open Terminal and key in the below code.
sudo mkdir /media/MyData
Then edit the file /etc/fstab and add these two lines at the bottom of the file:
sudo gedit /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=aef3a1b7-3b44-4c2a-a39f-68c2edf7aac8 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=27bb60cc-31cd-44d0-86b5-e658b2ed2714 none swap sw 0 0
# MyData <---- (ADD THIS LINE)
UUID=84a6e4c2-2ad4-4b96-b924-8575279487ae /media/MyData ext4 defaults,noatime 0 2 <---- (ADD THIS LINE)
Save and Exit.
Reboot your system. The "New Volume(2nd Harddisk)" partition will be mounted on /media/MyData.
Now open Nautilus and try to share a folder.Ubuntu will now install the required packages for the file sharing and things will be able to work.In case the instruction is not clear,please found attach link http://ubuntuforums.org/showthread.php?p=11031371 for the solution.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.