On Mon, Jan 31, 2011 at 10:31:17AM -0500, gene heskett wrote: > > But code snippets like this usually never get to my emc box. Yes, its an > smbmount on this box, but despite my being the user gene on both boxes, > because *buntu's start user numbers at 1000 whereas the rest of the > universe starts at 500, I have no write permissions there. > > So, how can I setup cifs to autotranslate this, or possibly add myself as a > group member on the *buntu box, so that these permission problems are > eliminated?
There are different ways to cure that, but synchronising your UID on the two machines is perhaps the most transparent way: $ sudo usermod -u 1000 gene # Change uid on the other box: 500 -> 1000 # (Have to stay > 1000 on the ubuntu box.) # From the manpage: # Any files which the user owns and which # are located in the directory tree rooted # at the user´s home directory will have # the file user ID changed automatically. # Files outside the user´s home directory # must be altered manually. # This'll do that last bit, if needed: $ sudo find / -uid 500 -exec chown gene '{}' \; To check first whether it finds what we want (if any are there to be found): $ sudo find / -uid 500 -exec ls '{}' \; | more That'll be easier to keep straight than any "autotranslation" which tries to make one uid out of two, after the horse has bolted, I suspect. Hope that's sorta useful, Gene. Erik -- Do not do unto others as you would they should do unto you. Their tastes may not be the same. -- George Bernard Shaw ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users