Setting a bookmark in kmplayer

2013-10-21 Thread Jonathan Ryshpan
Kmplayer is advertised to be able to set a bookmark at a position
partway through a file.  It should be simple,  but I can't figure out
how to do it.  Any advice?

Thanks - jon

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Can't boot Live from USB - unknown fs type, can't mount root

2013-10-21 Thread Jatin K

On Monday 21 October 2013 11:02 PM, Oliver Ruebenacker wrote:


 Hello,

  I downloaded Fedora 19 Live CD and copied it to a USB flash drive 
via dd. When I try to boot from it on a Lenovo Thinkpad T430s, I do 
get a screen that says that Fedora Live CD is going to load, but then 
it fails. The first error message I see is:


  kernel: SQUASHFS error: unable to read id index table

  Then, some lines later, I get several lines that say:

  dracut-mount[361]: mount: unknown filesystem type 'DM_snapshot_cow'

  and then:

  dracut-mount[361]: Warning: Can't mount root file system

  And then I seem to be in a "dracut emergency shell"

  Any ideas? Thanks!

 Best,
 Oliver


if you have another FC box try following and user to create live USB-stick

yum install -y liveusb-creator



Warm Regards

--
   _
  °v°
 /(_)\
  ^ ^  Jatin Khatri
RHCSA,RHCE,CCNA
Registerd Linux user No #501175
www.linuxcounter.net
No M$

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Can't boot Live from USB - unknown fs type, can't mount root

2013-10-21 Thread Joe Zeff

On 10/21/2013 10:58 AM, Oliver Ruebenacker wrote:

   Now I did - and apparently, I don't get the right checksum.

   Didn't think about this. I haven't had a corrupted download in a long
time.


Glad it was something simple.  The only reason I thought of it is that I 
had to make a LiveCD yesterday (My desktop won't boot off of USB.) and 
remembered to do the checksum, JIC.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Can't boot Live from USB - unknown fs type, can't mount root

2013-10-21 Thread Oliver Ruebenacker
 Hello,

On Mon, Oct 21, 2013 at 1:42 PM, Joe Zeff  wrote:

> On 10/21/2013 10:32 AM, Oliver Ruebenacker wrote:
>
>>
>>Any ideas? Thanks!
>>
>
> One quick thought: Did you verify the checksum of the download?
>

  Now I did - and apparently, I don't get the right checksum.

  Didn't think about this. I haven't had a corrupted download in a long
time.

  Thanks!

 Best,
 Oliver

-- 
Oliver Ruebenacker
IT Project Lead at PanGenX (http://www.pangenx.com)
Be always grateful, but never satisfied.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Can't boot Live from USB - unknown fs type, can't mount root

2013-10-21 Thread Joe Zeff

On 10/21/2013 10:32 AM, Oliver Ruebenacker wrote:


   Any ideas? Thanks!


One quick thought: Did you verify the checksum of the download?
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Can't boot Live from USB - unknown fs type, can't mount root

2013-10-21 Thread Oliver Ruebenacker
 Hello,

  I downloaded Fedora 19 Live CD and copied it to a USB flash drive via dd.
When I try to boot from it on a Lenovo Thinkpad T430s, I do get a screen
that says that Fedora Live CD is going to load, but then it fails. The
first error message I see is:

  kernel: SQUASHFS error: unable to read id index table

  Then, some lines later, I get several lines that say:

  dracut-mount[361]: mount: unknown filesystem type 'DM_snapshot_cow'

  and then:

  dracut-mount[361]: Warning: Can't mount root file system

  And then I seem to be in a "dracut emergency shell"

  Any ideas? Thanks!

 Best,
 Oliver

-- 
Oliver Ruebenacker
IT Project Lead at PanGenX (http://www.pangenx.com)
Be always grateful, but never satisfied.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fwd: Converting Fedora 19 machine to dual-boot with pre-installed Windows 7

2013-10-21 Thread Greg Woods
On Fri, 2013-10-18 at 17:09 -0700, Rick Stevens wrote:
> On 10/18/2013 09:50 AM, Oliver Ruebenacker issued this missive:

> >I have a Lenovo T430 that had Windows 7 Pro pre-installed, but I
> > wiped out Windows and installed Fedora 19 instead (actually, I first
> > installed Ubuntu and then Fedora).
> >
> >Now I want to turn it into a dual-boot machine with Fedora and
> > Windows


> 
> I _detest_ Microsoft's business practices, but that's a topic that is
> not apropos to this list or thread.
> 

Not totally irrelevant actually, because due to the licensing software,
Windows 7 has to be "activated", and that can be a tricky business if
you want to do something like using a license that was for an original
installation on a VM. The hardware seen by Windows is all different. I
just went through this a couple of days ago when I moved a VM from my
old laptop to my new one. My (legitimate) product key failed to work to
activate. In that case, I had to go through the Windows activation
center (on the phone) and give them a code that Windows gave me, then
type in a 30-digit activation code they gave me. It was a hassle, but it
eventually worked. I am not sure what would happen if you tried this
with a copy of Windows that was for an original install;  it may well be
locked in to some of the hardware.

For that reason, you might be better off installing Windows natively. I
just did that yesterday on a brand new system. First, I used a Gparted
Live CD (gparted.org) to partition the disk. I created some Linux
partitions, and an NTFS partition for Windows. When I installed Windows
7, it was quite happy to install itself into the NTFS partition and
leave everything else alone. So you may well be able to use a partition
editor (perhaps fdisk) to create an NTFS partition, then install Windows
7. Obviously you want to make sure your existing Linux system is backed
up first.

The only drawback to this approach is that Windows will, in all
likelihood, overwrite your master boot sector so that only Windows will
boot. That will require booting from a Linux rescue disc (the Fedora
install DVD works just fine) and reinstalling grub2 into the master boot
sector. I personally think this is easier than having to re-install
Linux again after installing Windows and then restoring your stuff, but
you may see it differently.

> 
> That being said, in the past Windows assumed it owned the whole machine
> and would take over the entire hard disk.

I think it is much better now, at least it is in Windows 7.

--Greg


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


RE: Juvenile BASH question

2013-10-21 Thread Bill Oliver

On Mon, 21 Oct 2013, Mark Haney wrote:



I will definitely have to look at that.  It has to be something like this since 
it was working until I had to mess with the setup to allow our devs to monitor 
the DB and backups from Jenkins.  Thanks for the help.




Don't forget to check your system profile file as well.

billo
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: F19 --> F18 feasible?

2013-10-21 Thread Beartooth
On Wed, 16 Oct 2013 18:00:11 +0200, Suvayu Ali wrote:

> On Tue, Oct 15, 2013 at 05:04:26PM +, Beartooth wrote:
>> 
>>  My old Thinkpad T30 (on which I ran fedup from F18 to F19) is
>> beginning to seem like more effort than it's worth, ever if eventual
>> success of the effort were a sure thing. Is there a FedDown lurking out
>> there somewhere?
> 
> You can always try `yum --releasever=18 distro-sync'.  But it goes
> without saying, there are no guarantees whatsover.

It did it again. At some time in the night, after many hours of 
lists too fast to read, it got to 

[]
--> Processing Dependency: libGL.so.1 for package: 1:qt-
x11-4.8.5-8.fc18.i686
--> Processing Dependency: libGL.so.1 for package: fltk-1.3.0-8.fc18.i686
---> Package net-tools.i686 0:2.0-0.6.20130109git.fc19 will be erased
---> Package nut-client.i686 0:2.6.5-12.fc19 will be erased
Killed
[root@T30 ~]# 

I'm guessing I might as well go try CentOS 

-- 
Beartooth Staffwright, Neo-Redneck Not Quite Clueless Power User
Remember I have precious (very precious!) little idea where up is.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


RE: Juvenile BASH question

2013-10-21 Thread Mark Haney

> My problem is this, if it works as root from a bash prompt, why /won't/ it 
> work as root from a bash script?  Shoudn't it ask for the password in both 
> instances?
>
>
>

Yeah, you'd think so.  When stuff like that happens to me, it's often that the 
environments are different -- I sometimes have things in my .profile or 
.bash_profile file that are not in my .bashrc file, so subshells are a bit 
different than the original shell.  Thus, for instance, it is conceiveable that 
there's a PBPASSWORD variable set in your .profile that isn't set in .bashrc, 
or something like that.

I will definitely have to look at that.  It has to be something like this since 
it was working until I had to mess with the setup to allow our devs to monitor 
the DB and backups from Jenkins.  Thanks for the help.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Can Fedora count it rpms?

2013-10-21 Thread Tim
Allegedly, on or about 20 October 2013, Doug sent:
> I don't know what this is counting--I must have missed the first post.
> Anyway, I ran it in my pclos-kde-32, and go this:
> 
> [doug@linux1 ~]$ rpm -qa | wc -l
> 2352
> 
> So what is it that I have 2352 of? 

I can't believe someone else hasn't said this already, "Don't run
commands that you don't know what they do."

If you'd hopped into the middle of some other thread, the command might
have been one that would screw up your system.

What you do have is minus 2352 brownie points, now.

-- 
[tim@localhost ~]$ uname -rsvp
Linux 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27 UTC 2013 x86_64

All mail to my mailbox is automatically deleted, there is no point
trying to privately email me, I will only read messages posted to the
public lists.

George Orwell's '1984' was supposed to be a warning against tyranny, not
a set of instructions for supposedly democratic governments.



-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Can Fedora count it rpms?

2013-10-21 Thread Reindl Harald


Am 20.10.2013 23:58, schrieb Doug:
> On 10/20/2013 05:36 PM, Fred Erickson wrote:
>> On Sun, 20 Oct 2013 15:45:05 + (UTC)
>> Beartooth  wrote:
>>
>>> On Sat, 19 Oct 2013 21:36:01 +0100, John Horne wrote:
>>>
 rpm -qa | wc -l
>>>
>>> Thanks! That told me 2377; does this number seem plausible?
>>>
>>
>> [fred@athbox-f18 ~]$ rpm -qa | wc -l
>> 2351
>> [fred@athbox-f18 ~]$ uname -r
>> 3.11.4-101.fc18.x86_64
>>
>> Note: I have developer packages and 3 desktops are installed.
>>
> I don't know what this is counting--I must have missed the first post

you only need to read the subject

> Anyway, I ran it in my pclos-kde-32, and go this:
> 
> [doug@linux1 ~]$ rpm -qa | wc -l
> 2352
> 
> So what is it that I have 2352 of?

installed packages?
what about look at the output of "rpm -qa" without counting?



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Can Fedora count it rpms?

2013-10-21 Thread Reindl Harald


Am 21.10.2013 00:03, schrieb Alchemist:
> 2013/10/21 Doug mailto:dmcgarr...@optonline.net>>
> 
> On 10/20/2013 05:36 PM, Fred Erickson wrote:
> > On Sun, 20 Oct 2013 15:45:05 + (UTC)
> > Beartooth mailto:bearto...@comcast.net>> wrote:
> >
> >> On Sat, 19 Oct 2013 21:36:01 +0100, John Horne wrote:
> >>
> >>> rpm -qa | wc -l
> >>
> >>  Thanks! That told me 2377; does this number seem plausible?
> >>
> >
> > [fred@athbox-f18 ~]$ rpm -qa | wc -l
> > 2351
> > [fred@athbox-f18 ~]$ uname -r
> > 3.11.4-101.fc18.x86_64
> >
> > Note: I have developer packages and 3 desktops are installed.
> >
> I don't know what this is counting--I must have missed the first post.
> Anyway, I ran it in my pclos-kde-32, and go this:
> 
> [doug@linux1 ~]$ rpm -qa | wc -l
> 2352
> 
> So what is it that I have 2352 of?
> 
> --doug
> 
> 
> grep out fc19 or fc18 or so Fedora N versions, for possible dublicates (in 
> that case, next step package-cleanup)
> rpm -qa | grep fcN | wc -l

why in the next step?

this is a completly wrong advise, there maybe F18/F19 packages which are
*not* dupes and so the grep shows nothing with value

"package-cleanup --dupes" is your friend
as well as "package-cleanup --cleandupes"



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Can Fedora count it rpms?

2013-10-21 Thread Reindl Harald


Am 19.10.2013 22:28, schrieb Beartooth:
> I'm sitting here watching F19 try to downgrade itself to F18

which will end in a broken setup

why in the world does someone *downgrade* a installed system
which is not supported and after 2 months with F19 not
nbeeded at all

> with screenful after screenful flashing by. I know that, if/when it 
> completes, it will tell me how many rpms it means to change; what I want, 
> though (out of admittedly idle curiosity), is the number of all the rpms 
> on the whole machine. Is there a command for that??

rpm -qa | wc -l



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora = "the darker side of the Internet?"

2013-10-21 Thread Reindl Harald


Am 19.10.2013 01:03, schrieb Roger:
> On 10/19/2013 05:00 AM, Reindl Harald wrote:
>>> I think you all missed their point about wanting an install that has a
>>> >>>longer lifespan. They're jumping ship from Debian, and avoiding Red Hat
>>> >>>derived distros, because they all change versions too often, and abandon
>>> >>>prior releases too quickly for them.  I understand how they feel.
>> >>
>> >>that must be why RHEL/CentOS has a lifespan of 10 years
> Admittedly I am a novice in much of the reasoning about version changes but 
> have long wondered why they bother when
> much of the new version could be just another update. Golly we update kernels 
> and core apps with regularity.
> When it gets serious like moving from ext4 to btrfs or what ever it's called, 
> now that would require version change
> but most version changes so far seem to be just updates.
> I have no wish to create a flame war or cop derogatory comment, my few cents 
> worth is based on observation not
> study of code.

and that is why different distributions exists
but also on Fedora no update will ever change for filesystem

* if you want no abusive changes but security updates and bugfixes use 
RHEL/CentOS
* if you want a recent system with all drawbacks use Fedora

and that is why i call the article idiocity: they mix Fedora and RHEL



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


RE: Juvenile BASH question

2013-10-21 Thread Bill Oliver

On Mon, 21 Oct 2013, Mark Haney wrote:




My problem is this, if it works as root from a bash prompt, why /won't/ it work 
as root from a bash script?  Shoudn't it ask for the password in both instances?





Yeah, you'd think so.  When stuff like that happens to me, it's often that the 
environments are different -- I sometimes have things in my .profile or 
.bash_profile file that are not in my .bashrc file, so subshells are a bit 
different than the original shell.  Thus, for instance, it is conceiveable that 
there's a PBPASSWORD variable set in your .profile that isn't set in .bashrc, 
or something like that.

billo
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


RE: Juvenile BASH question

2013-10-21 Thread Bill Oliver

On Mon, 21 Oct 2013, Mark Haney wrote:





Is it asking for root password or postgres password?

As I'm running the script as root, it's almost certainly asking for thepostgres 
user password.



Heh.  You'd think so.  But, I've managed to inadvertently su to some user in a 
script and then run a subordinate script that required root password...

Sigh.  If there's a way to screw up, I've figured out how to do it at least 
once.

billo
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


RE: Juvenile BASH question

2013-10-21 Thread Mark Haney


> su postgres - -c 
> 
>  
> 
> Now, this has worked perfectly for 3 months now, but the last few days 
> I started getting errors about failed authentication to the databases.  
> Here's where it gets weird.  I can su postgres - from a BASH prompt just 
> fine,but when I run the script, it asks me for a password, which it didn't do 
> before.
> IIRC, I had to change the postgres user from /bin/false to /bin/bash 
> for one of our software devs to be able to monitor the DBs via Jenkins, could 
> that have something to do with it?  I can't imagine how, since I can su from 
> the root prompt to the postgres user without asking for a password.
> 

It's been awhile since I used postgres, having moved to mysql, but if it's 
asking for the postgres admin password rather than root password, can't you get 
around it by putting it in a file somewhere like .pgpass or setting an 
environment variable like PGPASSWORD?  Maybe you need to set that in the shell 
you are created.  See:
http://www.postgresql.org/docs/9.1/static/libpq-envars.html
and
http://stackoverflow.com/questions/6523019/postgresql-scripting-psql-execution-with-password

My problem is this, if it works as root from a bash prompt, why /won't/ it work 
as root from a bash script?  Shoudn't it ask for the password in both 
instances?  


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


RE: Juvenile BASH question

2013-10-21 Thread Mark Haney



Is it asking for root password or postgres password?

As I'm running the script as root, it's almost certainly asking for thepostgres 
user password.  

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: [389-users] MemberOf Plugin - experiences?

2013-10-21 Thread Rich Megginson

On 10/21/2013 06:49 AM, Vesa Alho wrote:

On 10/21/2013 01:37 PM, Lars Remes wrote:
We are using the memberOf plugin in a global, 
multi-master-multi-slave setup, and so far we have not encountered 
any major issues.


You can easily change the membership attribute, for example, to 
memberUid.
MMR is handled by not replicating the memberOf attribute between 
masters, but the attribute IS copied to slaves. Each master runs own 
instance of the plugin.


Sometimes you may need to manual launch the fix-up task, but that has 
been quite rare.

If necessary, you can schedule it to run periodically.


How does it work for already existing entries if I enable the plugin? 
Do I need add them "manually" or does the plugin add them automatically?


You need to run the fixup-memberof.pl script.



Naturally I will test this well before changing production, but just 
interested what it takes to start using it.


Thanks for replying!

-Vesa

--
389 users mailing list
389-us...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users


--
389 users mailing list
389-us...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Re: Juvenile BASH question

2013-10-21 Thread Bill Oliver

On Mon, 21 Oct 2013, Mark Haney wrote:



This may sound like a rather juvenile BASH question, but I'm rather stumped and 
hope it's something simple to fix.  I hope someone has the answer since I
don't really have time (swapping out firewalls and half my network is down) to 
research it. 

 

I have a BASH script that is pretty simple, it backs up postgresQL databases 
using pg_dump.  It runs as root since I am copying data to a SAN and don't
really want to configure the postgres user to have access to it.  But, in order 
to get everything dumped properly, I do this:

 

su postgres - -c 

 

Now, this has worked perfectly for 3 months now, but the last few days I 
started getting errors about failed authentication to the databases.  Here's
where it gets weird.  I can su postgres - from a BASH prompt just fine,but when 
I run the script, it asks me for a password, which it didn't do before. 
IIRC, I had to change the postgres user from /bin/false to /bin/bash for one of 
our software devs to be able to monitor the DBs via Jenkins, could that
have something to do with it?  I can't imagine how, since I can su from the 
root prompt to the postgres user without asking for a password. 

 

Help!

 


It's been awhile since I used postgres, having moved to mysql, but if it's 
asking for the postgres admin password rather than root password, can't you get 
around it by putting it in a file somewhere like .pgpass or setting an 
environment variable like PGPASSWORD?  Maybe you need to set that in the shell 
you are created.  See:
http://www.postgresql.org/docs/9.1/static/libpq-envars.html
and 
http://stackoverflow.com/questions/6523019/postgresql-scripting-psql-execution-with-password



billo-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Juvenile BASH question

2013-10-21 Thread Bill Oliver

On Mon, 21 Oct 2013, Mark Haney wrote:



This may sound like a rather juvenile BASH question, but I'm rather stumped and 
hope it's something simple to fix.  I hope someone has the answer since I
don't really have time (swapping out firewalls and half my network is down) to 
research it. 

 

I have a BASH script that is pretty simple, it backs up postgresQL databases 
using pg_dump.  It runs as root since I am copying data to a SAN and don't
really want to configure the postgres user to have access to it.  But, in order 
to get everything dumped properly, I do this:

 

su postgres - -c 

 

Now, this has worked perfectly for 3 months now, but the last few days I 
started getting errors about failed authentication to the databases.  Here's
where it gets weird.  I can su postgres - from a BASH prompt just fine,but when 
I run the script, it asks me for a password, which it didn't do before. 
IIRC, I had to change the postgres user from /bin/false to /bin/bash for one of 
our software devs to be able to monitor the DBs via Jenkins, could that
have something to do with it?  I can't imagine how, since I can su from the 
root prompt to the postgres user without asking for a password. 

 

Help!



Is it asking for root password or postgres password?

billo-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Juvenile BASH question

2013-10-21 Thread Mark Haney
This may sound like a rather juvenile BASH question, but I'm rather stumped and 
hope it's something simple to fix.  I hope someone has the answer since I don't 
really have time (swapping out firewalls and half my network is down) to 
research it.

I have a BASH script that is pretty simple, it backs up postgresQL databases 
using pg_dump.  It runs as root since I am copying data to a SAN and don't 
really want to configure the postgres user to have access to it.  But, in order 
to get everything dumped properly, I do this:

su postgres - -c 

Now, this has worked perfectly for 3 months now, but the last few days I 
started getting errors about failed authentication to the databases.  Here's 
where it gets weird.  I can su postgres - from a BASH prompt just fine,but when 
I run the script, it asks me for a password, which it didn't do before.  IIRC, 
I had to change the postgres user from /bin/false to /bin/bash for one of our 
software devs to be able to monitor the DBs via Jenkins, could that have 
something to do with it?  I can't imagine how, since I can su from the root 
prompt to the postgres user without asking for a password.

Help!


Mark Haney
IT Support Associate/Network Administrator
Practichem
10404 Chapel Hill Road
Morrisville, NC 27560
W: 919-714-8428

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org