Sponsored Content
Top Forums Shell Programming and Scripting Solaris 9 Home Directory, Two Machines Sharing a NAS Post 303023975 by MadeInGermany on Wednesday 26th of September 2018 02:44:18 PM
Old 09-26-2018
Normally a home directory is fully owned by the user, and you can do
Code:
chown -hR username /home/username

The -h is necessary because by default chown follows a symbolic link. Imagine the user has a symlink mypasswd -> /etc/passwd ...Smilie
If you want to be safe then use "find" to only change owner to "username" if current owner is "olduser".
Code:
find /home/username -user olduser -exec chown -h username {} +

Both chown and find -user take a numeric UID or a username (that they automatically map to a UID).
This User Gave Thanks to MadeInGermany For This Post:
 

7 More Discussions You Might Find Interesting

1. HP-UX

sharing a directory

Im trying to simply share a directory on one unix server and mount that share on a different unix server. There is no "share" command like on sun. What is the command to create a share on HP-UX? (2 Replies)
Discussion started by: bski
2 Replies

2. IP Networking

Printer Sharing on a Mixed(Windows/Linux) Home Network

Sometimes you get the tiger...but sometimes he get you and this latest home network “project” of mine has gnawed on me pretty badly. Perhaps you can offer some technical help. It will be heartily appreciated. I have a small home network initially comprising two computers running Windows... (1 Reply)
Discussion started by: Annatar
1 Replies

3. UNIX for Advanced & Expert Users

Mounting NAS Drive on solaris

Hi, Im running 32-bit solaris on sparc. We have a NAS(Network attached drive), with its IP address, username and password. I'd like to be able to mount it on the solaris machine, and unmount it. The best possibility would be able to mount it simulataneously on 2 or more systems. Please... (9 Replies)
Discussion started by: 0ktalmagik
9 Replies

4. Solaris

NISuser home directory movement in Solaris

How to move home directory of NIS user from one system to another system in Solaris. Thanks & Regards Durgaprasad (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

5. UNIX for Dummies Questions & Answers

ssh autologin issue when both machines are having same ~home directory

Hi, I have two machines. M1 and M2 and having a generic id catadm, these two machines having common mount of /u/catadm directory. with this setup, ssh autologin is failing for me and asking me to enter password when i try autologin using this generc id from M1 to M2 catadm-M1$ ssh... (3 Replies)
Discussion started by: rbalaj16
3 Replies

6. Solaris

Sharing a local disk between to solaris machines

Hi, I recently added a disk on a solaris 9 and I wanted to make it accessible for another machine, using the same name here is what i did : On the machine holding the internal disk in vfstab i added the line /dev/dsk/c1t1d0s4 /dev/rdsk/c1t1d0s4 /SHARED2 ufs 2 yes ... (2 Replies)
Discussion started by: zionassedo
2 Replies

7. Solaris

NFS with a NAS: permanently inconsistent directory state across clients

Hi, I am having some NFS directory consistency problems with the below setup on a local (192.) network: 1. Different permissions (chmod) for the same NFS dir are reflected on different clients. 2. (more serious) an NFS dir created on client1 cannot be accessed on client2; this applies to some... (10 Replies)
Discussion started by: cosmojetz
10 Replies
scconf_quorum_dev_netapp_nas(1M)			  System Administration Commands			  scconf_quorum_dev_netapp_nas(1M)

NAME
scconf_quorum_dev_netapp_nas - add and remove shared Network Appliance network-attached storage (NAS) quorum devices and change various NAS cluster quorum configuration properties or states. SYNOPSIS
scconf {-a|-c|-r} -q name=devicename otheroptions DESCRIPTION
Note - Beginning with the Sun Cluster 3.2 release, Sun Cluster software includes an object-oriented command set. Although Sun Cluster software still supports the original command set, Sun Cluster procedural documentation uses only the object-oriented command set. For more infor- mation about the object-oriented command set, see the Intro(1CL) man page. A Network Appliance NAS device can be configured as a quorum device for Sun Cluster. The NAS configuration information consists of: o a device name, which must be unique across quorum devices o a filer name, which defaults to the device name if not specified o a LUN ID, which defaults to 0 if not specified To provide support for NAS devices as quorum devices, the administrator must install the quorum device support module provided by Network Appliance. If this module is not available, scconfprevents the addition of the quorum device. See Sun Cluster With Network-Attached Storage Devices Manual for Solaris OS for instructions about obtaining the support module. Additionally, the iSCSI license must be valid for the Network Appliance device. OPTIONS
The following options can be used for NAS quorum devices. See scconf(1M) for the list of supported generic options. See scconf_quo- rum_dev_netapp_nas(1M) for options that are specific to shared disk quorum devices. The add and remove forms of the command are used to add and remove NAS quorum devices to or from the configuration. The change form of the command is used for changing various properties of cluster quorum configuration. Before you add a quorum device, you must set up and configure the device and the logical unit number (LUN) on the device to be configured as a quorum device. For detailed procedures, see your Network Appliance documentation. For Sun Cluster requirements of device setup, see Sun Cluster With Network-Attached Storage Devices Manual for Solaris OS. After the quorum device is added, you cannot change the type. Add a NAS quorum device: -q -a name=devicename,type=netapp_nas[,filer=filer-name][,lun_id=0] Change a NAS quorum device's configuration: -q -c name=devicename,{maintstate | reset} Remove a NAS quorum device: -q -r name=devicename The -q option supports the following Network Appliance NAS-specific suboptions: filer=filer-name Specifies the name of the device on the network that you can use to access the NAS device when you are using rsh or telnet. lun_id=0 Specifies the LUN ID on the NAS device that will be a NAS quorum device. The LUN ID defaults to 0. When scconf is interrupted or fails while performing quorum-related operations, quorum configuration information can become inconsistent in the cluster configuration database. If an inconsistency occurs, either run the same scconf command again or run it with the reset option to reset the quorum information. EXAMPLES
Example 1 Adding Network Appliance NAS Quorum Devices The following scconf command adds the Network Appliance NAS quorum device qd1. -a -q name=qd1,type=netapp_nas,filer=nas1.sun.com,lun_id=0 Example 2 Removing Network Appliance NAS Quorum Devices The following scconf command removes the Network Appliance NAS quorum device qd1. -r -q name=qd1 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsczu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
Intro(1CL), clquorum(1CL), cluster(1CL), scconf(1M), scconf-quorum-dev-scsi(1M) Sun Cluster 3.2 10 Apr 2006 scconf_quorum_dev_netapp_nas(1M)
All times are GMT -4. The time now is 06:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy