Sponsored Content
Full Discussion: Best practices
Operating Systems Solaris Best practices Post 302760711 by Corona688 on Thursday 24th of January 2013 12:44:15 PM
Old 01-24-2013
That's actually a few questions.

The mountpoint itself, before its mounted, what permissions should it have? Probably root, and read-only to everything else. You don't want the mountpoint to be used when not mounted by accident, that could fill up your root filesystem.

When it's mounted, what permissions should it have? Well, a mountpoint is in effect just a folder like any other. It may have to have certain permissions; if you put a mountpoint on /var/cache/squid, it ought to belong to user squid, group squid, and be writable by squid, or it won't be a whole lot of use.

Given that in some ways it's easier to rearrange filesystems than files -- you can plant them literally wherever you want -- it may be best to mould filesystems to the layout you want rather than vice versa.

Last edited by Corona688; 01-24-2013 at 01:49 PM..
This User Gave Thanks to Corona688 For This Post:
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Scripting Best Practices

Hi - I am new to this and was wondering if some of you can help me out. I am just starting to write scripts and need some guidelines on creating scripts. I'm calling them "Best Practices"...what should I do and not do when creating scripts. All I know so far is that I should avoid putting... (5 Replies)
Discussion started by: toddjameslane
5 Replies

2. Shell Programming and Scripting

Korn Shell Best Practices

I am new to ksh scripts (still reading manuals). I need to write an application that reads a multi-line parameter file, builds sql on-the-fly, runs plsql and saves the output in a specific format for further processing. I am looking for anything on Best Practices for building such an... (1 Reply)
Discussion started by: mtravis
1 Replies

3. UNIX for Advanced & Expert Users

emergency shutdown best practices.

Has anyone implemented or have suggestions on how to shutdown many remote unix/linux servers from a single script initiated from 1 server? I need this to execute in parallel as time is not on my side. Our ups is sadly underrated and will die in approximately 15 minutes. (There is not... (10 Replies)
Discussion started by: jsw371
10 Replies

4. UNIX for Advanced & Expert Users

Best practices with AIX system users?

All, Preliminaries: AIX 5.2 Tivoli Maestro 6.1 (9.2) I am auditing an older AIX system. As it stands, I can login remotely to the system using the Maestro application's user account. This is BAD. The administrator claims that he cannot disable the remote login, because it will... (1 Reply)
Discussion started by: Thatto
1 Replies

5. UNIX for Dummies Questions & Answers

Best practices for Source control

Hi all, i am trying to incorporate source control management in my project. We have about 50 - 60 shell scripts on 3 different machines dev, stag and production, but there is no source control. All the files have to be located at specific locations on each machine for it to work I want to... (4 Replies)
Discussion started by: chvs2000
4 Replies

6. Shell Programming and Scripting

Global Script Best Practices

Hey there. I am a relative rookie when it comes to Linux/Unix Administration and have been learning to adapt my meager coding skill to working with shell scripts in the 'nix realms. I have done some exhausting searches for and found plenty of information on making scripts globally available but... (2 Replies)
Discussion started by: Tenuous
2 Replies

7. Linux

Virtualization best practices

Hello admins and gurus I have a controversial topic: now we are investing in a new Linux OS that will hold our Sybase database. The server will virtualized on a VMware server hosted on SAN storage. Now the question is, when we install the database engine is it better - in terms of performance -... (1 Reply)
Discussion started by: abohmeed
1 Replies
FS_LSMOUNT(1)						       AFS Command Reference						     FS_LSMOUNT(1)

NAME
       fs_lsmount - Reports the volume for which a directory is the mount point.

SYNOPSIS
       fs lsmount -dir <directory>+ [-help]

       fs ls -d <directory>+ [-h]

DESCRIPTION
       The fs lsmount command reports the volume for which each specified directory is a mount point, or indicates with an error message that a
       directory is not a mount point or is not in AFS.

       To create a mount point, use the fs mkmount command. To remove one, use the fs rmmount command.

OPTIONS
       -dir <directory>+
	   Names the directory that serves as a mount point for a volume. The last element in the pathname provided must be an actual name, not a
	   shorthand notation such as one or two periods ("." or "..").

       -help
	   Prints the online help for this command. All other valid options are ignored.

OUTPUT
       If the specified directory is a mount point, the output is of the following form:

	  '<directory>' is a mount point for volume '<volume name>'

       where

       o   A number sign ("#") precedes the <volume name> string for a regular mount point.

       o   A percent sign ("%") precedes the <volume name> string for a read/write mount point.

       o   A cell name and colon (":") follow the number or percent sign and precede the <volume name> string for a cellular mount point.

       The fs mkmount reference page explains how the Cache Manager interprets each of the three types of mount points.

       If the directory is a symbolic link to a mount point, the output is of the form:

	  '<directory>' is a symbolic link, leading to a mount point for volume
	  '<volume name>'

       If the directory is not a mount point or is not in AFS, the output reads:

	  '<directory>' is not a mount point.

       If the output is garbled, it is possible that the mount point has become corrupted in the local AFS client cache. Use the fs flushmount
       command to discard it, which forces the Cache Manager to refetch the mount point.

EXAMPLES
       The following example shows the mount point for the home directory of user "smith":

	  % fs lsmount /afs/abc.com/usr/smith
	  '/afs/abc.com/usr/smith' is a mount point for volume '#user.smith'

       The following example shows both the regular and read/write mount points for the ABC Corporation cell's "root.cell" volume.

	  % fs lsmount /afs/abc.com
	  '/afs/abc.com' is a mount point for volume '#root.cell'

	  % fs lsmount /afs/.abc.com
	  '/afs/.abc.com' is a mount point for volume '%root.cell'

       The following example shows a cellular mount point: the State University cell's "root.cell" volume as mounted in the ABC Corporation cell's
       tree.

	  % fs lsmount /afs/stateu.edu
	  '/afs/stateu.edu' is a mount point for volume '#stateu.edu:root.cell'

PRIVILEGE REQUIRED
       The issuer must have the "l" (lookup) permission on the ACL of the root directory of the volume that houses the file or directory named by
       the -dir argument, and on the ACL of each directory that precedes it in the pathname.

SEE ALSO
       fs_flushmount(1), fs_mkmount(1), fs_rmmount(1)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26							     FS_LSMOUNT(1)
All times are GMT -4. The time now is 08:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy