Sponsored Content
Full Discussion: creating users
Operating Systems HP-UX creating users Post 302158096 by Perderabo on Monday 14th of January 2008 07:30:33 AM
Old 01-14-2008
The title of this thread does not match your question and I'm not sure what you want. But if you have a user named, for example, fred, then:
id fred
will show his uid.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Creating Users!!!!

Can any body show me how to create users......... Thnx.... (1 Reply)
Discussion started by: ocpguy
1 Replies

2. UNIX for Advanced & Expert Users

Creating Users with SMC

Hi, I tried to create a user test1 using SMC and its only partially created with following errors: Jun 25 13:44:54 wasana WBEM_Logging_Service: The alias for user test1 could not be created. This indicates an error accessing the alias table. The error was null. Jun 25 13:44:54 wasana... (2 Replies)
Discussion started by: chaandana
2 Replies

3. UNIX for Advanced & Expert Users

Creating USERs with restricted Access

Hi There, i need to creat USERS in UNIX with restricted access to different directories. for example user1 should have access to dir1 and dir2 user2 should have access to dir2 and dir3 Please help me (4 Replies)
Discussion started by: ramanan25
4 Replies

4. UNIX Desktop Questions & Answers

Creating New Users in UNIX Machine !!!

Hi How to create users in the UNIX machine .... I am the ROOT and i want to create users with normal privileges . a) Please give the sequence of commands which i need to use. b) How to set their userid and passwords (3 Replies)
Discussion started by: skyineyes
3 Replies

5. Shell Programming and Scripting

Help with shell script - creating users

echo -e "Enter in a username : \c" read username grep "^$username:" /etc/passwdWhat I'm trying to do is take in a username from my script and I need to be able to check if that username already exists. If it does the script should display a message saying that the user already exists and exit. ... (2 Replies)
Discussion started by: shadowcat
2 Replies

6. BSD

Creating an array out of users: shell script

I want to create a shell script for a menu selection consisting of users defined on the machine. To an administrator having the privileges, the selection menu will look as follows: Select the user you want to define the variables for: 1) my-username-1 2) my-username-2 etc Then there would be a... (7 Replies)
Discussion started by: figaro
7 Replies

7. UNIX for Advanced & Expert Users

Creating groups and users

Hi Could anyone please suggest how we can check in Linux if a user or a group name is already existing? In case of a user the command should also be able to specify the user with a given directory and shell. We can of course check this using a grep command but since that is just a pattern match,... (12 Replies)
Discussion started by: Dorothy
12 Replies

8. UNIX for Dummies Questions & Answers

Script for creating users

Hi, I wants to create the users for multiple machine from single main server using the shell script ,can you please help me on this.... (2 Replies)
Discussion started by: Rahulne25
2 Replies

9. Red Hat

Script for Creating more users like 50 in one server

Hi friends could you please share me the script to create more users in one server except newusers, is there any option to change secondary group and how to print passwd and changing the age all these things how can i edit in newsers.. please help me (0 Replies)
Discussion started by: indiankrish
0 Replies

10. HP-UX

Creating a group of users with script

Hi, I have a file with usernames, and the comment section, e.g : Data removed by request of sanchitadutta91, 20 May 2020 I need to add these users into a server. Is it possible to use a script to create the users, together with the comment ? From the commandline to add one user, the... (2 Replies)
Discussion started by: anaigini45
2 Replies
media_findname(3VOLMGT) 				Volume Management Library Functions				   media_findname(3VOLMGT)

NAME
media_findname - convert a supplied name into an absolute pathname that can be used to access removable media SYNOPSIS
cc [ flag ... ] file ... -lvolmgt [ library ... ] #include <volmgt.h> char *media_findname(char *start); DESCRIPTION
This function is obsolete. The management of removable media by the Volume Management feature, including vold, has been replaced by soft- ware that supports the Hardware Abstraction Layer (HAL). Programmatic support for HAL is through the HAL APIs, which are documented on the HAL web site. See hal(5). The return value of this function is undefined. media_findname() converts the supplied start string into an absolute pathname that can then be used to access a particular piece of media. The start parameter can be one of the following types of specifications: /dev/... An absolute pathname in /dev, such as /dev/rdiskette0, in which case a copy of that string is returned (see NOTES on this page). volume_name The volume name for a particular volume, such as fred (see fdformat(1) for a description of how to label floppies). volmgt_symname The symbolic name for a device, such as floppy0 or cdrom2. media_type The generic media type name. For example, floppy or cdrom. In this case media_findname() looks for the first piece of media that matches that media type, starting at 0 (zero) and continuing on until a match is found (or some fairly large maximum number is reached). In this case, if a match is found, a copy of the pathname to the volume found is returned. RETURN VALUES
The return from this function is undefined. ERRORS
For cases where the supplied start parameter is an absolute pathname, media_findname() can fail, returning a null string pointer, if an lstat(2) of that supplied pathname fails. Also, if the supplied absolute pathname is a symbolic link, media_findname() can fail if a read- link(2) of that symbolic link fails, or if a stat(2) of the pathname pointed to by that symbolic link fails, or if any of the following is true: ENXIO The specified absolute pathname was not a character special device, and it was not a directory with a character special device in it. EXAMPLES
Example 1 Sample programs of the media_findname() function. The following example attempts to find what the pathname is to a piece of media called fred. Notice that a volmgt_check() is done first (see the NOTES section on this page). (void) volmgt_check(NULL); if ((nm = media_findname("fred")) != NULL) { (void) printf("media named "fred" is at "%s" ", nm); } else { (void) printf("media named "fred" not found "); } This example looks for whatever volume is in the first floppy drive, letting media_findname() call volmgt_check() if and only if no floppy is currently known to be the first floppy drive. if ((nm = media_findname("floppy0")) != NULL) { (void) printf("path to floppy0 is "%s" ", nm); } else { (void) printf("nothing in floppy0 "); } ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |MT-Unsafe | +-----------------------------+-----------------------------+ |Interface Stability |Obsolete | +-----------------------------+-----------------------------+ SEE ALSO
cc(1B), fdformat(1), lstat(2), readlink(2), stat(2), free(3C), malloc(3C), volmgt_check(3VOLMGT), volmgt_inuse(3VOLMGT), volmgt_root(3VOLMGT), volmgt_running(3VOLMGT), volmgt_symname(3VOLMGT), attributes(5), hal(5) NOTES
If media_findname() cannot find a match for the supplied name, it performs a volmgt_check(3VOLMGT) and tries again, so it can be more effi- cient to perform volmgt_check() before calling media_findname(). Upon success media_findname() returns a pointer to string which has been allocated; this should be freed when no longer in use (see free(3C)). SunOS 5.11 2 Mar 2007 media_findname(3VOLMGT)
All times are GMT -4. The time now is 09:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy