Download Cygwin User's Guide
Transcript
Chapter 3. Using Cygwin allows for special cases (such as multiple domains) where the UIDs might match otherwise. The -g option creates a local user that corresponds to each local group. This is because NT assigns groups file ownership. The -m option bypasses the current mount table so that, for example, two users who have a Windows home directory of H: could mount them differently. The -s option omits the NT Security Identifier (SID). For more information on SIDs, see Section 2.4 in the Cygwin User’s Guide. The -p option causes mkpasswd to use the specified prefix instead of the account home dir or /home/ . For example, this command: Example 3-8. Using an alternate home root $ mkpasswd -l -p "$(cygpath -H)" > /etc/passwd would put local users’ home directories in the Windows ’Profiles’ directory. On Win9x machines the -u option creates an entry for the specified user. On the NT series it restricts the output to that user, greatly reducing the amount of time it takes in a large domain. 3.7.8. mount Usage: mount [OPTION] [<win32path> <posixpath>] Display information about mounted filesystems, or mount a filesystem -b, --binary (default) -c, --change-cygdrive-prefix -f, --force -h, --help -m, --mount-commands -o, -p, -s, -t, -u, -v, -x, -E, --options X[,X...] --show-cygdrive-prefix --system (default) --text --user --version --executable --no-executable -X, --cygwin-executable text files are equivalent to binary files (newline = \n) change the cygdrive path prefix to <posixpath> force mount, don’t warn about missing mount point directories output usage information and exit write mount commands to replicate user and system mount points and cygdrive prefixes specify mount options show user and/or system cygdrive path prefix add system-wide mount point text files get \r\n line endings add user-only mount point output version information and exit treat all files under mount point as executables treat all files under mount point as non-executables treat all files under mount point as cygwin executables The mount program is used to map your drives and shares onto Cygwin’s simulated POSIX directory tree, much like as is done by mount commands on typical UNIX systems. Please see Section 3.1.2 for more information on the concepts behind the Cygwin POSIX file system and strategies for using mounts. To remove mounts, use umount 54