Solaris 9 Home Directory, Two Machines Sharing a NAS


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Solaris 9 Home Directory, Two Machines Sharing a NAS
# 15  
Old 10-25-2018
Yes.
You are right - the find command is reversible.
# 16  
Old 10-30-2018
Thanks. Haven't tried this one yet.. Being overly cautious so I wanted to ask- Is this the cause of the login issue I was having when I changed the uid before or could it be something else? Many posts I've seen about changing the uid just show how to change the uid without any mention of this issue I'm having. And if this is the issue, do you know the specific files or directories within this users home directory that are the ones responsible for the login issue? If its just a few, I could perhaps just change those to test the theory.
# 17  
Old 10-31-2018
Hi Stellaman,

Your suggested methodology for changing the user ID and file ownership is the correct way to make the change. Bringing the User ID's and the Group ID's into alignment will probably be required, depending on what the user population is on the estate you may have to repeat this exercise for a number of users. Now would probably be a good time to plan a system for the management/alignment of the User ID's and Group ID's over the whole estate.

This is a common issue in the world of larger estates, it is frequently down to organic growth - where no or poor forward planning is in place. Large enterprises tend to have management tools in place, where user ID's can be correctly managed - this tends to happen after the problem has been encountered.

Regards

Gull04

Last edited by gull04; 10-31-2018 at 04:41 AM.. Reason: More Information
# 18  
Old 11-02-2018
OK, I ran the commands and the user was able to log in successfully after the uid change. He also looked around his files on the NAS and Thanks! Though I now noticed that while his uid matches between the two machines, the group IDs do not match. Is this a problem?
# 19  
Old 11-02-2018
Hi Stellaman;

The group ID's are not so much of a problem - however it is best practice to keep them aligned as some users may depend on group permissions for access to files/programs.

If you check the /etc/group file on each of the system, you should be able to bring both accounts into alignment. This can be done in the same manner that you aligned the user ID's, but you should check the group memberships as unlike user ID's many users can be members of groups.

Regards

Gull04
# 20  
Old 11-02-2018
Yes, even if it currently might not matter, it is better to have the GIDs in sync as well.
Analogue to the
Code:
usermod -u newuid username
find /home/username -user olduid -exec chown -h newuid {} +

you run
Code:
groupmod -g newgid groupname # changes /etc/group and perhaps referring entries in /etc/passwd
usermod -g newgid username # if not done by the previous groupmod
find /home/username -group oldgid -exec chgrp -h newgid {} +

The user must logout/login on the target system otherwise she would continue with the old GID.
# 21  
Old 11-02-2018
Quote:
Originally Posted by hicksd8
Whoa!! Hang on a minute. Let's explain some things here.

Any one filesystem can only be mounted by one operating system at a time. Mounting the same filesystem on multiple machines is an instant recipe for corruption.
This is true for locally attached disk or SAN based file systems, but hopefully not for NAS based ones.

As shared directory wouldn't make sense if not shareable.

I agree there is a risk of file corruption (but not file system corruption) if multiple clients access the same file at the same time, but this risk also exists when multiple processes do the same on a single host.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

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 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

6. 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

7. 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
Login or Register to Ask a Question