Koozali.org: home of the SME Server

Strange error on admin login

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
Strange error on admin login
« on: October 25, 2006, 04:50:52 PM »
Hi,

When trying to su admin from a root shell, I get "Real UID cannot exec script".

I also can't login directly?

What causes this?

Alex
......

Offline byte

  • *
  • 2,183
  • +2/-0
Strange error on admin login
« Reply #1 on: October 25, 2006, 10:33:42 PM »
Any base problems please report to bug tracker making sure you give full history and/if you have changed/added anything
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

hulyom

Strange error on admin login
« Reply #2 on: March 30, 2007, 03:49:58 PM »
I have posted this bug a week ago as Bug #2802 on http://bugs.contribs.org/show_bug.cgi?id=2802  but there is no any answer since then

[root@srvr2 ~]# su - admin
Real UID cannot exec script

any clue?

Offline pmstewart

  • *
  • 73
  • +0/-0
Strange error on admin login
« Reply #3 on: March 30, 2007, 05:34:18 PM »
Quote

When trying to su admin from a root shell, I get "Real UID cannot exec script".


I'm no expert by any means with this stuff.....but it occurs to me the admin account for SME is an alias of root.

What leads me to this conclusion is when you log on using the shell under admin it should present you with the "SME Console" which is the shell partner to server-manager. Login to server-manger is done by admin username but has root permission. Mail for root is received by admin...etc.
The templating system gives them different jobs but root and admin seem to be fairly inter-related.

It's also my understanding if your logged on at a console or through a terminal session as "root" the "su" function is unnecessary.

Since no other information was given - such as SME version, method of logging in (say putty or consolel) or code being executed it may be a little hard to simply say there is a bug.

Like I said.....I ain't no expert - simply sharing an observation.

hulyom

Strange error on admin login
« Reply #4 on: March 30, 2007, 06:34:03 PM »
Well, thanks for trying to help but the problem is that I can not access to server-manager from my web browser (or console), so I am trying to fix the problem accessing with admin user, but it kicks me out, so the only way to do is "su - admin" but you know the result...

I can access the console ( /sbin/e-smith/console ) from root I can access and fix the problem, but my question is:

if I run the console as root and fix the problem with the option 4 (reconfigure) will I have problems because of permissions with admin in the future? :?:

Well and whole the explanation is on the bug link, so there is no very much point writing it again :?

Thanks

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Strange error on admin login
« Reply #5 on: March 30, 2007, 07:53:59 PM »
Run signal-event post-upgrade and signal-event reboot and see if that solves your problem.

Quote
It's also my understanding if your logged on at a console or through a terminal session as "root" the "su" function is unnecessary.

Not exactly correct. su command is uset to switch users so it is necessary. Well not if you have a root account enabled but it would be usefull if you would use a normal user account and then su root to switch to your root account. I hope that this helped.
"It should just work" if it doesn't report it. Thanks!