How to do central home directories and user accounts on Ubuntu?

I’ve run something like this in the past. LDAP is your best bet for centralized accounts. This is reasonably standard, and should be easy to set up. The client is merely a matter of installing a few packages (ldap-utils, libnss-ldap, and libpam-ldap), and editing /etc/pam.d/common-(everything). You’ll need to add a line like <type of file …

Read more

Obtain user’s home directory

Since go 1.12 the recommended way is: package main import ( “os” “fmt” “log” ) func main() { dirname, err := os.UserHomeDir() if err != nil { log.Fatal( err ) } fmt.Println( dirname ) } Old recommendation: In go 1.0.3 ( probably earlier, too ) the following works: package main import ( “os/user” “fmt” “log” …

Read more

How do I change the default location for a users home directory in Vista?

For individual folders (My Docyuments, My Pictures, etc., the “Special Folders”) I do the registry/GPO thing you alluded to. However, if I want to move the entire folder structure I cheat. Move the folder to a new location, and then create a junction pointing the old folder to the new folder. So all your programs …

Read more