Skip to main content

vserver cifs home-directory show-user

Contributors
Suggest changes

Display the Home Directory Path for a User

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The vserver cifs home-directory show-user command prints the path of a user's CIFS home directory. Use this command if multiple CIFS home directory paths exist and you want to see which path holds the user's CIFS home directory.

Parameters

{ [-fields <fieldname>,…​]

If you specify this parameter, the command displays only the fields that you specify.

| [-instance ] }

If you specify the -instance parameter, the command displays detailed information about all entries.

-vserver <vserver> - Vserver

Use this required parameter to specify the Vserver that contains the home directory of the user specified with the required -username parameter.

-username <text> - User Name

Use this required parameter to locate the home directory of the specified user. You must enter this parameter in the following format: user, domain/user or cifs_server_name/user.

[-path <text>] - Path

If you specify this parameter, the command displays information about the user's home directory with the specified path.

[-share-name <text>] - Share Name

If you specify this parameter, the command displays information about the user's home directory with the specified home-directory share.

Examples

The following command displays information about the home directory of user gpo\rpuser1 belonging to Vserver vs1.

cluster1::> vserver cifs home-directory show-user -vserver vs1 -username gpo\rpuser1
Vserver  : vs1
    Username : GPO/rpuser1
ShareName                               Home Dir Path
    -------------------------------------   ----------------------------------
    root                                    /home/rpuser1
    rpuser1                                 /home/rpuser1
    ~GPO~rpuser1                            /home/GPO/rpuser1

The following command displays information about the home directory of user gpo\rpuser1 belonging to Vserver vs1 at share path /home/rpuser1.

cluster1::> vserver cifs home-directory show-user -vserver vs1 -username gpo\rpuser1 -path /home/rpuser1
Vserver  : vs1
    Username : GPO/rpuser1
ShareName                               Home Directory Path
    -------------------------------------   ----------------------------------
    root                                    /home/rpuser1
    rpuser1                                 /home/rpuser1
    2 entries were displayed.

The following command displays information about the home directory of user gpo\rpuser1 belonging to Vserver vs1 at share GPOrpuser1.

cluster1::> vserver cifs home-directory show-user -vserver vs1 -username gpo\rpuser1 -share-name  ~GPO~rpuser1
Vserver  : vs1
    Username : GPO/rpuser1
ShareName                               Home Directory Path
    -------------------------------------   ----------------------------------
    ~GPO~rpuser1                            /home/GPO/rpuser1