/ Published in: Bash
                    
                                        
change user's home directory
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
# To change the user's home directory, just use the 'usermod' command, which exists on all unices. It works like this:
usermod -d /path/to/new/homedir/ username
Comments
 Subscribe to comments
                    Subscribe to comments
                
                