Ubuntu File Share with Fedora.. how??

ro6ot
ro6ot used Ask the Experts™
on
I'm running Ubuntu 10.04 on my desktop. I have a file share in my home directory call "docs". I use to have Ubuntu 10.10 on my laptop. With my laptop I use to mount my desktop share and use rsync to keeps files synced. I recently ran a clean install of Fedora 15 on my laptop. I used the same user name and password as my Ubuntu desktop (this is the way I had my laptop setup when it had Ubuntu). In Fedora I can mount the share but can't access the files.

I checked the UID:GUID on my account on Ubuntu and it's 1000:1000. On my Fedora laptop it's 500:500. From Fedora, if I look at the directory and file properties, the owner is 1000:1000.  I'm assuming this is why I running into issues.

Is there an easy way to get around this issue? Is it possible to change my Fedora UID:GUID to 1000:1000 without breaking a bunch of stuff? Or vise versa (change the UID:GUID on Ubuntu)

Or maybe there's a simple way that I'm overlooking???
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2017

Commented:
Are you using samba for sharing or are you looking to share using NFS?

You have to make sure that the users you have defined on fedora have/use the same UIDs/GIDs

mount -t nfs ubuntuserver:/sharename /mnt

Author

Commented:
I was using this command before

mount -a //hostname/share ~/backup

If I try the command you posted I get "Mount: wrong fs type, bad option, bad superblock"
Distinguished Expert 2017

Commented:
The method you are using is a samba share.
can you post your /etc/exports?

Do you have the same user/uid defined on both systems?

mount -a triggers the reprocessing of /etc/fstab which is unnecessary.

Author

Commented:
arnold.. thanks for the help.

my uid is different on both systems. On Ubuntu its 1000 and on Fedora it's 500. I wasnt sure if I could change the uid with on my accounts without breaking something.

Since these are both linux systems; does it make more sense to use nfs over samba.. does it matter?

Do you want the /etc/exports from the server or client?
Distinguished Expert 2017
Commented:
Whichever you feel more comfortable with.
No matter which option you use, the UIDs have to be the same since the UID is what being passed
usermod -u UID.

Then make sure that you chown -Rh your home directory to fix the UID.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial