Koozali.org: home of the SME Server

signal-event & db: command not found

Offline dkvnk

  • *
  • 6
  • +0/-0
signal-event & db: command not found
« on: June 08, 2015, 05:26:28 AM »
help,

i've been trying to enable repo8 on my sme server 9 by instructions on http://wiki.contribs.org/SME9.0_Contribs_QA#Setup

but signal-event & db command is always return :command not found

guest22

Re: signal-event & db: command not found
« Reply #1 on: June 08, 2015, 06:57:58 AM »

Hi and welcome,

your issue indicates that you have done some more then just follow the documentation. You path environment is likely not correct.


That by itself will remain a problem.


Tell us a bit about the history of you installation pls.

Offline dkvnk

  • *
  • 6
  • +0/-0
Re: signal-event & db: command not found
« Reply #2 on: June 08, 2015, 07:12:19 AM »
Hi, Thanks for reply

This I have done

Code: [Select]
[root@server-sme1 e-smith]# db yum_repositories show sme8contribs
bash: db: command not found
[root@server-sme1 e-smith]# db yum_repositories set sme8contribs repository \
> Name 'SME 8 - contribs' \
> MirrorList 'http://mirrorlist.contribs.org/mirrorlist/smecontribs-8' \
> GPGCheck yes \
> Visible no \
> status disabled
bash: db: command not found
[root@server-sme1 e-smith]# signal-event yum-modify
bash: signal-event: command not found

guest22

Re: signal-event & db: command not found
« Reply #3 on: June 08, 2015, 07:15:44 AM »
Again, your path variable is not correct. The firts command you give shows that already. You need to fix that.


What have you done _before_ trying to enable this repo. What is the history of this server and what contribs did you install?

Offline dkvnk

  • *
  • 6
  • +0/-0
Re: signal-event & db: command not found
« Reply #4 on: June 08, 2015, 07:42:41 AM »
its a fresh install sme 9 & i've hasn't install nothing,

i'll figure it and try search google, still learn sme.. its my first install and i dont know what i must change about path variable

thanks.

guest22

Re: signal-event & db: command not found
« Reply #5 on: June 08, 2015, 07:45:21 AM »
something must have gone wrong somewhere....


Anyway, to get you going, pls use '/sbin/e-smith/db' instead of just 'db'

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: signal-event & db: command not found
« Reply #6 on: June 08, 2015, 10:51:57 AM »
something must have gone wrong somewhere....


Anyway, to get you going, pls use '/sbin/e-smith/db' instead of just 'db'

I agree..
this should be investigated as it should not happen

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: signal-event & db: command not found
« Reply #7 on: June 08, 2015, 12:24:30 PM »
How are you getting to the root prompt?  Are you logging in directly as root, or are you logging in as another user and then using su?  If you're using su, you need to do 'su -'. otherwise it won't read root's environment, which will result in what you're seeing here.
......

guest22

Re: signal-event & db: command not found
« Reply #8 on: June 08, 2015, 12:26:08 PM »
How are you getting to the root prompt?  Are you logging in directly as root, or are you logging in as another user and then using su?  If you're using su, you need to do 'su -'. otherwise it won't read root's environment, which will result in what you're seeing here.


This tip is going to the quarter finals! ;-)

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: signal-event & db: command not found
« Reply #9 on: June 08, 2015, 12:35:00 PM »
we should/could use motd file (/etc/motd) and the "PrintMotd yes" flag in /etc/sshd/sshd_config to give some useful info to user login in console


guest22

Re: signal-event & db: command not found
« Reply #10 on: June 08, 2015, 12:53:51 PM »
we should/could use motd file (/etc/motd) and the "PrintMotd yes" flag in /etc/sshd/sshd_config to give some useful info to user login in console


Agree, can you open a new bug for this pls?

Offline ReetP

  • *
  • 3,949
  • +6/-0
Re: signal-event & db: command not found
« Reply #11 on: June 08, 2015, 03:43:16 PM »
we should/could use motd file (/etc/motd) and the "PrintMotd yes" flag in /etc/sshd/sshd_config to give some useful info to user login in console

And if you are a really lucky boy and tell me roughly how to do it I'll do you a patch :-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: signal-event & db: command not found
« Reply #12 on: June 09, 2015, 09:58:48 AM »
give me some time, I'll post in bugzilla, stay tuned

Offline dkvnk

  • *
  • 6
  • +0/-0
Re: signal-event & db: command not found
« Reply #13 on: June 09, 2015, 10:05:16 AM »
something must have gone wrong somewhere....


Anyway, to get you going, pls use '/sbin/e-smith/db' instead of just 'db'
thanks, its work... but i will always use by path /sbin/e-simth/.. instead simple command

How are you getting to the root prompt?  Are you logging in directly as root, or are you logging in as another user and then using su?  If you're using su, you need to do 'su -'. otherwise it won't read root's environment, which will result in what you're seeing here.
Hi.. i've try without 'su' before, and when i try with su permision its same
every command must type with path

going back to sme 8, i'm curious and then fresh install.. again the command must type with patch /sbin/e-smith, but installing addon is easy than sme 9 (for me  :D)

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: signal-event & db: command not found
« Reply #14 on: June 09, 2015, 10:07:31 AM »
no..

if you login with a "normal" user, you must use
Code: [Select]
su -

not only
Code: [Select]
su

try and let us know

Offline dkvnk

  • *
  • 6
  • +0/-0
Re: signal-event & db: command not found
« Reply #15 on: June 09, 2015, 10:19:08 AM »
no..

if you login with a "normal" user, you must use
Code: [Select]
su -

not only
Code: [Select]
su

try and let us know

Hi

Great! it work
Thanks

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: signal-event & db: command not found
« Reply #16 on: June 09, 2015, 10:43:25 AM »

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: signal-event & db: command not found
« Reply #17 on: June 09, 2015, 03:39:34 PM »
we should/could use motd file (/etc/motd) and the "PrintMotd yes" flag in /etc/sshd/sshd_config to give some useful info to user login in console
The motd has been desactivated for security reasons some years ago.....in fact they didn't want to say to the guy who is doing a hack what is the system where he is.

Of course for good reasons that could be reactivated.....for example ask about involvment or money to the inactive community
« Last Edit: June 09, 2015, 03:42:32 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: signal-event & db: command not found
« Reply #18 on: June 09, 2015, 03:42:15 PM »
"they" who? :-)

motd is shown only when you are logged in.. and if you're already in, telling or not you what kind of system is under your finger doesn't make much difference IMHO :-)

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: signal-event & db: command not found
« Reply #19 on: June 09, 2015, 03:43:58 PM »
'They' are people with permissions to push to cvs and release  rpms
« Last Edit: June 09, 2015, 03:53:57 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: signal-event & db: command not found
« Reply #20 on: June 09, 2015, 03:45:17 PM »
is there any reference in bugzilla? during NFR creation "motd" input  in the sbj filed did not give any result

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: signal-event & db: command not found
« Reply #21 on: June 09, 2015, 03:45:37 PM »
in any case, things can change

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: signal-event & db: command not found
« Reply #23 on: June 09, 2015, 04:07:34 PM »
I can't see any reason, only a question (from Ian) to Charlie and Shad.. but no answer.

IMO (I repeat myself), showing system's info and/or any other kind of info with motd is a nosense problem in a security vision.. you see it when you're in, you already have all in your hands..

and, repeating myself again, things can change.. I'm quite sure that this kind of feature is harmless for security and more user-friendly..


Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: signal-event & db: command not found
« Reply #24 on: June 09, 2015, 04:20:12 PM »
why not, my patches are there if you want to use them as template
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: signal-event & db: command not found
« Reply #25 on: June 09, 2015, 04:24:29 PM »
already done my job, see the referenced bug (you'd see something "familiar", if you know what I mean ;-) )

http://bugs.contribs.org/show_bug.cgi?id=8939

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: signal-event & db: command not found
« Reply #26 on: June 09, 2015, 04:25:12 PM »
we could/should merge the NFRs.. but we should also avoid to have a too long message