On 10/25/2012 04:05 PM, Richard C. Steffens wrote: > All the talk about problems with Ubuntu 12 reminded me that I need to > migrate from 10.04 before next spring. I now have a machine I can use to > experiment on. I've got whichever flavor of Debian one gets when one > goes to the Debian download site. With that installed I can transfer > files from my Ubuntu 10.04 system as long as I have the directory on my > 10.04 sharing set. > > I also installed Ubuntu 12.04 on my experimenting machine. > > When I try to transfer a file from my 10.04 machine to the 12.04 machine > I get a "Permission denied" error message. How do I start figuring out > what to tweak to fix this? > > Thanks. > It all depends on how you are sharing the files: USB drive, NFS, SAMBA (smbfs or cifs), ntfs-3g mount? Typically, you will get this if your numerical uid and/or gid are different even though the alphabetic name are the same. In this case, the 10.04 "user" can't write to the 12.04 "user"
For example, for a SAMBA share via cifs, my fstab reads: //<server_ip>/archive /archive/data cifs rw,uid=1000,gid=100,credentials=/etc/smb_mnt.conf 0 0 where smb_mnt_conf contains (because I am secretive the sharing computer has different users): username=<user> password=<password> domain=<workgroup> Once authenticated, the uid and gid are mapped back and forth correctly. If are using NFS, you will need to set up your nfs daemons and exports file. There should be init scripts in Ubuntu. In Slackware these are /etc/rc.d/rc.nfsd and /etc/rc.d/rc.rpc Now you will set up (I use explicit server IP addresses as no local DNS servers are running and my /etc/host is empty): /etc/exports /data <server_ip>/255.255.255.0(rw,no_subtree_check,root_squash) 127.0.0.1(no_subtree_check,sync) /etc/hosts.deny portmap:ALL lockd:All mountd:ALL statd:ALL rquotad:ALL /etc/hosts.allow portmap:xxx.yyy.zzz.0/255.255.255.0 127.0.0.1 lockd:xxx.yyy.zzz.0/255.255.255.0 127.0.0.1 statd:xxx.yyy.zzz.0/255.255.255.0 127.0.0.1 mountd:xxx.yyy.zzz.0/255.255.255.0 127.0.0.1 rquotad:xxx.yyy.zzz.0/255.255.255.0 127.0.0.1 where xxx.yyy.zzz are the first three octets of you server IP (assuming 255.255.255.0 subnet). Then mount the nfs share with something like: mount <server_ip>:/data /mnt/hd Now, if you are willy-nilly mounting "on the fly" with your file manager, and gvfs etc, in Gnome, then good luck. I know nuthin' 'bout mountin' no gnomes! -Ed _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
