2016-04-07 15:20:23 +08:00
|
|
|
.\" Copyright (c) 2007-2016 Jean-Pierre André.
|
2009-10-28 23:19:14 +08:00
|
|
|
.\" This file may be copied under the terms of the GNU Public License.
|
|
|
|
.\"
|
2016-04-07 15:20:23 +08:00
|
|
|
.TH NTFSUSERMAP 8 "February 2016" "ntfsusermap 1.2.0"
|
2009-10-28 23:19:14 +08:00
|
|
|
.SH NAME
|
2016-04-07 15:20:23 +08:00
|
|
|
ntfsusermap \- NTFS Building a User Mapping File
|
2009-10-28 23:19:14 +08:00
|
|
|
.SH SYNOPSIS
|
2016-04-07 15:20:23 +08:00
|
|
|
.B ntfsusermap
|
2009-10-28 23:19:14 +08:00
|
|
|
\fIwindows-system-device\fP
|
|
|
|
\fB[\fIother-ntfs-device\fP...\fB]\fR
|
|
|
|
.PP
|
|
|
|
Where \fIwindows-system-device\fP is the device containing the Windows system
|
|
|
|
whose users are to be mapped to current Linux system.
|
|
|
|
.PP
|
|
|
|
And \fIother-ntfs-device\fP is another device containing files which are
|
|
|
|
to be accessed both by the Windows mentioned above and current Linux system.
|
|
|
|
.PP
|
2016-04-07 15:20:23 +08:00
|
|
|
the ntfsusermap command must be started as root, and the designated devices
|
2009-10-28 23:19:14 +08:00
|
|
|
must not be mounted.
|
|
|
|
.PP
|
2016-04-07 15:20:23 +08:00
|
|
|
Typing ntfsusermap with no args will display a summary of command
|
2009-10-28 23:19:14 +08:00
|
|
|
arguments.
|
|
|
|
.SH DESCRIPTION
|
2016-04-07 15:20:23 +08:00
|
|
|
\fBntfsusermap\fR
|
2009-10-28 23:19:14 +08:00
|
|
|
creates the file defining the mapping of Windows accounts to Linux logins for
|
|
|
|
users who owns files which should be visible from both Windows and
|
|
|
|
Linux.
|
|
|
|
.PP
|
|
|
|
It relies on existing files which were created on Windows, trying
|
|
|
|
to locate significant files and asking which Linux user or group should
|
|
|
|
own them. When a Linux owner or group is requested, the reply may be :
|
|
|
|
.PP
|
|
|
|
- the uid or gid (numeric or symbolic) of Linux owner or group of the file.
|
|
|
|
.RS
|
|
|
|
In that situation, no more file with the same Windows owner will be selected.
|
|
|
|
.RE
|
|
|
|
- or no answer, when not able to define the owner or group.
|
|
|
|
.RS
|
|
|
|
In that situation another file owned by the same Windows user or group
|
|
|
|
may be selected later so that a mapping can be defined.
|
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
The mappings for standard Windows users, such as "Administrator" or
|
|
|
|
"All Users" are defined implicitly. As a consequence a user mapping should
|
|
|
|
never be defined as Linux root.
|
|
|
|
.PP
|
2016-04-07 15:20:23 +08:00
|
|
|
When there are no more significant files, ntfsusermap create the
|
2009-10-28 23:19:14 +08:00
|
|
|
mapping file into the file UserMapping in the current directory. This
|
|
|
|
file has to be moved to the hidden directory .NTFS-3G in the root of
|
|
|
|
all the NTFS file systems to be shared between Windows and Linux. This
|
|
|
|
requires the file system to be mounted, but the created file will not
|
|
|
|
be taken into account if not present at mount time, which means the
|
|
|
|
file system has to be unmounted and mounted again for the new mapping
|
|
|
|
file to be taken into account.
|
|
|
|
.SH OPTIONS
|
2016-04-07 15:20:23 +08:00
|
|
|
No option is defined for ntfsusermap.
|
2009-10-28 23:19:14 +08:00
|
|
|
.SH EXAMPLES
|
|
|
|
Map the users defined on the Windows system present on /dev/sda1 :
|
|
|
|
.RS
|
|
|
|
.sp
|
2016-04-07 15:20:23 +08:00
|
|
|
.B ntfsusermap /dev/sda1
|
2009-10-28 23:19:14 +08:00
|
|
|
.sp
|
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
A detailed example, with screen displays is available on
|
2016-04-07 15:20:23 +08:00
|
|
|
http://jp-andre.pagesperso-orange.fr/ntfsusermap.html
|
2009-10-28 23:19:14 +08:00
|
|
|
.SH EXIT CODES
|
2016-04-07 15:20:23 +08:00
|
|
|
.B ntfsusermap
|
2009-10-28 23:19:14 +08:00
|
|
|
exits with a value of 0 when no error was detected, and with a value
|
|
|
|
of 1 when an error was detected.
|
|
|
|
.SH KNOWN ISSUES
|
|
|
|
Please see
|
|
|
|
.RS
|
|
|
|
.sp
|
2009-11-14 03:36:22 +08:00
|
|
|
http://www.tuxera.com/community/ntfs-3g-faq/
|
2009-10-28 23:19:14 +08:00
|
|
|
.sp
|
|
|
|
.RE
|
|
|
|
for common questions and known issues.
|
|
|
|
If you would find a new one in the latest release of
|
|
|
|
the software then please send an email describing it
|
|
|
|
in detail. You can contact the
|
|
|
|
development team on the ntfs\-3g\-devel@lists.sf.net
|
|
|
|
address.
|
|
|
|
.SH AUTHORS
|
|
|
|
.B ntfs-3g.secaudit
|
|
|
|
has been developed by Jean-Pierre André.
|
|
|
|
.SH THANKS
|
|
|
|
Several people made heroic efforts, often over five or more
|
|
|
|
years which resulted the ntfs-3g driver. Most importantly they are
|
|
|
|
Anton Altaparmakov, Richard Russon, Szabolcs Szakacsits, Yura Pakhuchiy,
|
|
|
|
Yuval Fledel, and the author of the groundbreaking FUSE filesystem development
|
|
|
|
framework, Miklos Szeredi.
|
|
|
|
.SH SEE ALSO
|
|
|
|
.BR ntfsprogs (8),
|
|
|
|
.BR attr (5),
|
|
|
|
.BR getfattr (1)
|