Re: storing root password rpm spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El Miércoles, 20 de Diciembre de 2006 18:10, Mikkel L. Ellertson escribió:
>
> Except for special cases where you can install as a user, you are
> normally running as root when you install an RPM. You need to be
> root to write to the bin and sbin directories.

Yeah, I didn't explain myself correctly, It's nothing related with root 
password, just database one.

>
> Now, as far as configuring the database, that is a different problem
> - you need to be able to access the database as a user with the
> correct permissions to create databases and tables. If you know the
> password, you can use the --password=<password> option for the mysql
> command, or the equivalent if using another version of sql.

Yeah, the problem is exactly that, obiusly, the package will be installed on 
machines which I have not under control, so that's why I'm interested in a 
way to ask for the password during the "rpm -i" process and then using it 
whith mysql -u root -p `password`

> Also,  the sql password for root does not have to be the same as the system
> password for root. (When first installed, there may not be a root
> password in the sql tables.)

I know (see above) :)
>
> Getting the password interactively when doing an RPM install is a
> problem because of the design of rpm, and the fact that it may be
> running under a front-end program, or as part of a batch job. I can
> remember long threads about this in the past...

Have you seen for example nagios-mysql (debian package) it asks for user and 
password of the mysql, that's exactly what I want.

Thanks
-- 
Manuel Arostegui Ramirez.

Electronic Mail is not secure, may not be read every day, and should not
be used for urgent or sensitive issues.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux