Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
Subject: application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
Subject: X Windows problem (xauth)
Subject: Upgrading openoffice 1 1 rpm
Subject: FTP: connection refused
Subject: FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
Subject: broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Subject: Promise 378 controller
Subject: Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Subject: Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
import user into mysql

import user into mysql

2007-11-06       - By Ramsey, Robert L

 Back
Reply:     1     2  

Import in what sense?  Since any user can read /etc/passwd you could go through
and parse the names out of it and then and see if the name is a user name or
group name.  You'd want to do a lot of error checking because you probably don
't want to import the generic users like "nobody" or "apache" and so forth.

If you connected to the mysql database as someone who can grant rights, you
could then grant rights to tables.  Or just import the names into a table.  I
don't think you will be able to sync passwords though because the passwords
should be stored in /etc/shadow.  Unless of course you are using ldap, ad, or
other form on non-local authentication, which case they are stored somewhere
else.  Not sure on that though; it should be possible to set up mysql to use
your regular password, but I don't know how.

bob

> -- --Original Message-- --
> From: redhat-list-bounces@(protected) [mailto:redhat-list-
> bounces@(protected)] On Behalf Of Davis, Jared Scott
> Sent: Tuesday, November 06, 2007 11:34 AM
> To: General Red Hat Linux discussion list
> Subject: import user into mysql
>
> Is there any way to import a user in /etc/passwd to MySQL?
>
>
>
> Thanks,
>
>
>
> jared davis.
>
> Internet Administrator
>
> Residential Life
>
> University of Missouri-Columbia
>
> 100 Pershing Hall
>
> (573) 884-3616
>
>


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list