Dealing with different usernames when mounting removable media in Linux
        Posted  
        
            by 
                dimatura
            
        on Super User
        
        See other posts from Super User
        
            or by dimatura
        
        
        
        Published on 2012-07-09T02:27:09Z
        Indexed on 
            2012/07/09
            3:18 UTC
        
        
        Read the original article
        Hit count: 523
        
I have a laptop in which my username is, say, "foo". I have an external drive, formatted with Ext4, for which all files are owned by "foo" (at a filesystem level). Now, I have a desktop in which my username is, say, "bar". If I mount this external drive in this computer the files are considered to not be owned by "bar". This makes sense, but it is annoying because their bits mode are set so that only the owner can modify/delete them. What's the cleanest way to deal with this? Create a group with "foo" and "bar" and add group modification permissions?
© Super User or respective owner