× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



It might be easier to do this from the other end. Can the Unix ID be
created with a specific UID, to match the iSeries?

Regards,

Scott Ingvaldson
Senior IBM Support Specialist
Fiserv Midwest


-----Original Message-----
From: Nate Gelbard [mailto:gelbardn@xxxxxxxxxxxx]
Sent: Monday, April 07, 2008 11:30 AM
To: Midrange Systems Technical Discussion
Subject: RE: NFS UID GID sync up

Thanks Scott.

When I
CHGUSRPRF USRPRF(gelbardn) UID(7723) GID(6000) I get the error
Not allowed to change UID of user profile.
However, I was able to change just the GID. I am logged in as QSECOFR.

Any ideas? Thanks
-Nate


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Friday, April 04, 2008 11:20 PM
To: Midrange Systems Technical Discussion
Subject: Re: NFS UID GID sync up

Hello Nate,

NIS is really a means of synchronizing files across a network. Since
many Unix systems use the same file in the same format for storing
userids and passwords, you can synchronize the password database this
way, which is a useful feature.

However, your 170 is running i5/OS, which is not Unix. It doesn't use a

file for userid/password management, and even if it did, the odds aren't

good that it would match the Unix format. So NIS is definitely not a
choice.

What you might try doing is creating a file with the following Unix
shell command:

awk -F: '{print $1 "," $3 "," $4}' < /etc/passwd > /tmp/myfile.csv

This will give you a CSV file containing the user name, UID and GID,
separated by commas. You should then be able to transfer it to i and
use the CPYFRMIMPF command to convert it to a database file.

Once in database format, have a CL program that reads your database file

and for each record in the file, do:

CHGUSRPRF USRPRF(&USRPRF) UID(&UID) GID(&GID)

Granted, this won't run automatically when a profile changes, you'll
have to re-run the process to re-synchronize. But, still... it's a
lot better than changing each user profile by hand.



Nate Gelbard wrote:
Hello, I bought a 9406-170 off craigslist for $500 recently.
#2290 CPU, 872meg main storage 4x8gig RAID.

V5R3 freshly installed and with all license paperwork intact.
Working on getting PASE & SSH & java setup so we can being development

locally.

Our lab Linux NFS server uses NIS users/groups. When I mount my home
directory from NFS to the as400, the UID & GID of my 400 user vs the
NFS/NIS user don't match and I get permission denied.

What's the best way to sync these up?
Can OS/400 talk NIS?
How do I edit my user to change the Uid/Gid to match the Ids coming
from
NFS?

Thanks

----
Nate Gelbard | Senior QA Engineer
Direct: 503.276.7635
Cell: 503.810.2840

TRIPWIRE | The Leader in Configuration Audit & Control



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.