Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to find server that hosts my home directory? Post 302466556 by DGPickett on Tuesday 26th of October 2010 04:52:33 PM
Old 10-26-2010
Code:
niscat

??

You can find home dirs in /etc/passwd unless they hid on niscat or ypcat.

But detecting if it is a mount and the host depends on other tools, like df, unless it is mounted somehow to look like a local disk.

Last edited by DGPickett; 10-27-2010 at 05:19 PM..
 

9 More Discussions You Might Find Interesting

1. Solaris

running sshd server from home directory without root access

Hi, I managed to install openssh from source on my home directory on a server I don't have root access to. I had problems with privilege separation because of permissions initially so I disabled it in sshd_config. But when I run sshd from where I installed it by doing ~/local/sbin/sshd, nothing at... (0 Replies)
Discussion started by: sayeo
0 Replies

2. Shell Programming and Scripting

how to find out the home directory of a user??

Hi all, I would like to know how to find out the home directory of a particular user.. eg, If am the root , then my Home directory will be / if say am just a user logging into the terminal then my home dir would change, so accordingly i would like to know how to find it out... I know that... (7 Replies)
Discussion started by: wrapster
7 Replies

3. Shell Programming and Scripting

Find recently updated files in home directory

Is there a shell command that will allow me to list index files in the /home directory for all users on a server that have been updated within the past 24 hours? (e.g. index.htm .html .php in/home/user1/public_html /home/user2/public_html /home/user3/public_html etc ) (2 Replies)
Discussion started by: Kain
2 Replies

4. Solaris

find home directory paths for all users

How to find al the user's home directories? (2 Replies)
Discussion started by: a2156z
2 Replies

5. Solaris

Restricting SFTP user to a defined directory and home directory

Hi, I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP. The aim is to... (1 Reply)
Discussion started by: sftpuser
1 Replies

6. Shell Programming and Scripting

Shell script to find weblogic home directory

Hi, I am trying to find the weblogic home directory whether it is installed in the Linux box. if it is existing display the weblogic home and the corresponding Java home directory else display message as that wl home does not exist. I already wrote a program but it was not working properly.... (11 Replies)
Discussion started by: spgreddy
11 Replies

7. Shell Programming and Scripting

Shell script to find the GB files in /tmp directory in remote server

Hi, i need help on shell scripting. Main intention of the script is step 1: ssh to remote server Step 2: cd /tmp in remote server Step 3: in tmp i want to grep only files and directories which are in GB sizes All the servers list file is - tmpsrv.txt vi tmpsrv.txt ... (17 Replies)
Discussion started by: kumar85shiv
17 Replies

8. UNIX for Advanced & Expert Users

Change sFTP home directory for particular user and from specific server

Hello Folks, Of course i came here for your favour :) How to set a defalult home directory for sFTP login ( at present users land in to their home directrory) when they connect from specific server. When server(A) sFTP's to Linux server(B) they land to thier home directory. I want... (5 Replies)
Discussion started by: Thala
5 Replies

9. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies
niscat(1)							   User Commands							 niscat(1)

NAME
niscat - display NIS+ tables and objects SYNOPSIS
niscat [-AhLMv] [-s sep] tablename... niscat [-ALMP] -o name... DESCRIPTION
In the first synopsis, niscat displays the contents of the NIS+ tables named by tablename. In the second synopsis, it displays the inter- nal representation of the NIS+ objects named by name. Columns without values in the table are displayed by two adjacent separator characters. OPTIONS
The following options are supported: -A Displays the data within the table and all of the data in tables in the initial table's concatenation path. -h Displays the header line prior to displaying the table. The header consists of the `#' (hash) character followed by the name of each column. The column names are separated by the table separator character. -L Follows links. When this option is specified, if tablename or name names a LINK type object, the link is followed and the object or table named by the link is displayed. -M Master server only. This option specifies that the request should be sent to the master server of the named data. This guarantees that the most up-to-date information is seen at the possible expense of increasing the load on the master server and increasing the possibility of the NIS+ server being unavailable or busy for updates. -o name Displays the internal representation of the named NIS+ object(s). If name is an indexed name (see nismatch(1)), then each of the matching entry objects is displayed. This option is used to display access rights and other attributes of individual columns. -P Follows concatenation path. This option specifies that the request should follow the concatenation path of a table if the initial search is unsuccessful. This option is only useful when using an indexed name for name and the -o option. -s sep This option specifies the character to use to separate the table columns. If no character is specified, the default separa- tor for the table is used. -v Displays binary data directly. This option displays columns containing binary data on the standard output. Without this option binary data is displayed as the string *BINARY*. EXAMPLES
Example 1: Displaying the contents of the hosts table example% niscat -h hosts.org_dir # cname name addr comment client1 client1 192.168.201.100 Joe Smith crunchy crunchy 192.168.201.44 Jane Smith crunchy softy 192.168.201.44 The string *NP* is returned in those fields where the user has insufficient access rights. Example 2: Displaying on the standard output Display the passwd.org_dir on the standard output. example% niscat passwd.org_dir Example 3: Displaying table contents Display the contents of table frodo and the contents of all tables in its concatenation path. example% niscat -A frodo Example 4: Displaying table entries Display the entries in the table groups.org_dir as NIS+ objects. Notice that the brackets are protected from the shell by single quotes. example% niscat -o '[ ]groups.org_dir' Example 5: Displaying the table object Display the table object of the passwd.org_dir table. example% niscat -o passwd.org_dir The previous example displays the passwd table object and not the passwd table. The table object includes information such as the number of columns, column type, searchable or not searchable separator, access rights, and other defaults. Example 6: Displaying the directory object Display the directory object for org_dir, which includes information such as the access rights and replica information. example% niscat -o org_dir ENVIRONMENT VARIABLES
NIS_PATH If this variable is set, and the NIS+ table name is not fully qualified, each directory specified will be searched until the table is found (see nisdefaults(1)). EXIT STATUS
niscat returns the following values: 0 Successful completion 1 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWnisu | +-----------------------------+-----------------------------+ SEE ALSO
nis+(1), nisdefaults(1), nismatch(1), nistbladm(1), nis_objects(3NSL), nis_tables(3NSL), attributes(5) NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html. SunOS 5.10 10 Dec 2001 niscat(1)
All times are GMT -4. The time now is 02:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy