Sponsored Content
Top Forums UNIX for Dummies Questions & Answers script to mount from vfstab file Post 302565559 by otheus on Tuesday 18th of October 2011 07:57:10 AM
Old 10-18-2011
Not a great approach. Try this instead:
Code:
awk '{print $1,$3}' /tmp/prod_vfstab |
while read device mntpt; do
 mount -F vxfs $device $mntpt
done

I separated LINE into the two variables so you can see how that approach might be used.
These 2 Users Gave Thanks to otheus For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/etc/vfstab

If i wish to make a mount permanent, is it /etc/vfstab that i have to the entry add to? If so does anybody know the syntax, ie. is it tab or space delimited ? etc etc any help would be greatly appreciated (3 Replies)
Discussion started by: hcclnoodles
3 Replies

2. UNIX for Dummies Questions & Answers

Vfstab on spare disk - HOW ? Mount ?

Hi, guys ! Could someone clarify one thing for me: I start machine from disk0, and want to check the /etc/vfstab on disk1. How do i do it ? Tried to write: cd / mount /dev/dsk/c0t1d0s0 /mnt But if I do cd /mnt, it is empty. I expected to see disk1 there ? Or am I wrong ? How do I... (3 Replies)
Discussion started by: DGoubine
3 Replies

3. Solaris

mounting file system /etc/vfstab

Hello. When I use format command - It shows: /dev/dsk/c0d0s4 is normally mounted on /u02 according to /etc/vfstab. Please remove this entry to use this device. What does it mean? (4 Replies)
Discussion started by: panchpan
4 Replies

4. Solaris

mount in vfstab

In the end of /etc/vfstab file : /dev/md/dsk/d30 /dev/md/dsk/d30 /odb0 ufs no no - /dev/md/dsk/d40 /dev/md/dsk/d40 /odb1 ufs no no - After boot filesystems /odb0 and /odb1 don't mount. Also they don't mount after comand mount -a But if i'm enter... (1 Reply)
Discussion started by: jess_t03
1 Replies

5. Shell Programming and Scripting

question about vfstab

Hi all, I have been trying to figure out a way to mount swap on /tmp at a stage early than the default script that does it... If anyone knows how it can be done pls pls help me!!!!! I have been struggling a lot for it Secondly, continuing with the same issue... I wanted to know if the... (4 Replies)
Discussion started by: wrapster
4 Replies

6. UNIX for Advanced & Expert Users

vfstab overlay mount

How can I specify and the -O (overlay option) in the vfstab ? Also can you specify the overlay option to the mount options for a Vertias cluster NFS service group ? (0 Replies)
Discussion started by: wjones
0 Replies

7. Solaris

etc/vfstab

Hi Everyone, How to find the wrong entry in etc/vfstab or wrong mount point in etc/vfstab ? Thanks & Regards Padmaja. (4 Replies)
Discussion started by: padmaja
4 Replies

8. UNIX for Dummies Questions & Answers

Setting up a vfstab

Hi Guys i need your help quite urgently I am setting up a vfstab but need some help, here is the file systems 0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> drmlc-00 Part Tag Flag Cylinders Size Blocks Mounted/used by 0 root wm 0 - ... (1 Reply)
Discussion started by: brian112
1 Replies

9. Emergency UNIX and Linux Support

Script to fill the file system mount with empty files to desired size

We are regularly using for our testing, where we are manually filling up the mount with desired size with following command dd if=/dev/zero of=file_2GB bs=2048000 count=2000 We are planning to automate the task where taking input for % of size as one input and the name of the file system... (8 Replies)
Discussion started by: chandu123
8 Replies

10. Shell Programming and Scripting

Script to mount nas-share using generated credentials (mount EC 13,32)

Heyas At home i have 1 nas with 3 shares, of which i used to mount 2 of them using a script with hardcoded password and username in it. EDIT: Turns out, its not the script, but 'how i access' the nas share.. (-o user=XY,password=... VS. -o credentials=...). Figured about credential files,... (0 Replies)
Discussion started by: sea
0 Replies
KEYFS(4)						     Kernel Interfaces Manual							  KEYFS(4)

NAME
keyfs, warning - authentication database files SYNOPSIS
auth/keyfs [ -d ] [ -p ] [ -w [np] ] [ -mmntpt ] [ -kkey ] [ keyfile ] auth/warning [ -n ] [ -p ] DESCRIPTION
Keyfs serves a two-level file tree for manipulating authentication information. It runs on the machine providing authentication service for the local Plan 9 network, which may be a dedicated authentication server or a CPU server. The programs described in auth(8) use keyfs as their interface to the authentication database. Keyfs reads and decrypts file keyfile (default /adm/keys) using the DES key key, which is by default read from #r/nvram (see rtc(3)). With option -p, keyfs prompts for the password. Keyfile holds a 41-byte record for each user in the database. Each record is encrypted sepa- rately and contains the user's name, DES key, status, host status, and expiration date. The name is a null-terminated UTF string NAMELEN bytes long. The status is a byte containing binary 0 if the account is enabled, 1 if it is disabled. Host status is a byte containing binary 1 if the user is a host, 0 otherwise. The expiration date is four-byte little-endian integer which represents the time in seconds since the epoch (see date(1)) at which the account will expire. If any changes are made to the database that affect the information stored in keyfile, a new version of the file is written. There are two authentication databases, one for Plan 9 user information, and one for SecureNet user information. A user need not be installed in both databases but must be installed in the Plan 9 database to connect to a Plan 9 server. Keyfs serves an interpretation of the keyfile in the file tree rooted at mntpt (default /mnt/keys). Each user user in keyfile is repre- sented as the directory mntpt/user. Making a new directory in mntpt creates a new user entry in the database. Removing a directory removes the user entry, and renaming it changes the name in the entry. Such changes are reflected immediately in keyfile. Keyfs does not allow duplicate names when creating or renaming user entries. All files in the user directories except for key contain UTF strings with a trailing newline when read, and should be written as UTF strings with or without a trailing newline. Key contains the DESKEYLEN-byte encryption key for the user. The following files appear in the user directories. key The authentication key for the user. If the user's account is disabled or expired, reading this file returns an error. Writing key changes the key in the database. log The number of consecutive failed authentication attempts for the user. Writing the string bad increments this number; writing good resets it to 0. If the number reaches fifty, keyfs disables the account. Once the account is disabled, the only way to enable it is to write the string ok to status. This number is not stored in keyfile, and is initialized to 0 when keyfs starts. status The current status of the account, either ok or disabled. Writing ok enables the account; writing disabled disables it. expire The expiration time for the account. When read, it contains either the string never or the time in seconds since the epoch that the account will expire. When written with strings of the same form, it sets the expiration date for the user. If the expiration date is reached, the account is not disabled, but key cannot be read without an error. ishost This file exists only if the user is a host (the host status for the user is 1). Hosts are the only users able to receive calls. Creating it makes the user a host and sets the host status to 1, and removing it sets the host status to 0. If the -w option is on, keyfs runs the command warning once every 24 hours to mail people about expiring keys. Warnings are sent 14 days and 7 days prior to expiration. The argument to -w, either p or n, is passed to warning to restrict the warnings to the Plan 9 or SecureNet database. The default for keyfs is not to call warning at all; warning's own default is to warn about both. The files /adm/netkeys.who and /adm/keys.who are used to find the mail addresses to send to. The first word on each line identifies a user. Any subsequent strings on the line delimited '<' and '>' are considered mail addresses to send warnings to. If multiple lines match a user, the last in the file is used. Changeuser (see auth(8)) adds lines to these files. FILES
/adm/keys Encrypted key file for the Plan 9 database. /adm/netkeys Encrypted key file for the SecureNet database. /adm/keys.who List of users in the Plan 9 database. /adm/netkeys.who List of users in the SecureNet database. #r/nvram The non-volatile RAM on the server, which holds the key used to decrypt key files. SOURCE
/sys/src/cmd/auth/keyfs.c /sys/src/cmd/auth/warning.c SEE ALSO
auth(6), namespace(6), auth(8) KEYFS(4)
All times are GMT -4. The time now is 10:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy