On Monday 10 July 2006 07:14, [EMAIL PROTECTED] wrote:
> I am using Kubuntu Dapper on 2 PCS on my home LAN and have set up Shares
> on these two pcs.
>
> I can copy files OK from PC1 ( media server) to PC2 ( client) without
> problems via fish:// and Konqueror.
>
> I can copy files from PC2 (Client) to PC1 (media server) /home/bill
> without problems.
>
> My problem is that PC1 also has 2 additional hard drives from which I
> can copy data, but cannot copy data to.
>
> I have determined that this is due to all directories/files on these
> drives being owner/group 502, whereas the drives themselves are
> owner/group "bill", the same as PC1 /home/bill and PC2 /home/bill.
>
> I have tried to change permissions on all directories/files to
> user/group "bill" using /System Settings/Sharing/File Sharing and using
> Midnight Commander ( both as root of course) without success.
>
> These 2 drives were previously in the same PC when I was running Kanotix
> ( prior to the current Ubuntu based beta) and Shares worked then, though
> obviously users/groups were different.
>
> I have cd'd to the drive(s) ie cd /media/sda1, and tried (as sudo) chown
> -R bill / and chgrp -R bill / but not all directories/files change owner
> and/or group.
>
> Advice please on changing group/user permissions.
Bill to avoid confusion (for your own benefit, not 'cause you need to do this)
* ensure uid and gid for bill is the same on both machines
umm, I would sudo su
vi /etc/passwd
vi /etc/group
(but be consistant, if you change either, fix every file
eg /home/bill /var/spool/mail/bill etc etc)
* Now set owner of the files needed to bill
chown -R bill.bill /media/place1
as appropriate
This will always prevail unless the partitions are mounted read-only or
immutable flag is set (or the filesystem is damaged, or funny eg ntfs, ..)
chattr -R -i /media/place1
as appropriate.
R.M <with apologies, :-)> chown, chattr.
This illustrates the negative side of private groups. EG I use group users for
things like media, g+w and all legal users (readers/writers) of media in
group users too. Invent a scenario that works for you.
James
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html