Koozali.org: home of the SME Server

Logging on as one of the mailbox names...?

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Logging on as one of the mailbox names...?
« on: February 07, 2006, 04:21:11 AM »
I have created a set of mailboxes via the web interface.  Call them Tom, Dick, and Harry.

If I access the machine directly, wanting to log in from the server logon: prompt, and type tom, and the password for tom, I get some text that is only on screen for the blink of an eye before the screen blanks, and I get back the server logon: prompt.

Am I missing something here?  Is there a way to log on as the mailbox name?

Offline pfloor

  • *****
  • 889
  • +1/-0
Logging on as one of the mailbox names...?
« Reply #1 on: February 07, 2006, 04:49:18 AM »
The only logins allowed are for root and admin.

root will take you to a command line prompt.
admin will take you to the admin console.

Paul
In life, you must either "Push, Pull or Get out of the way!"

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Logging on as one of the mailbox names...?
« Reply #2 on: February 07, 2006, 05:09:58 AM »
Is there a way to launch a script as one of the other users?

Is there a way, when logged in as root, to run something using the credentials of, say, tom?  Or a way to command to be launched, from outside the machine, a script or program, so that it is run by tom?

Or is there a way to "turn off" the feature that prevents me from logging on as Tom, Dick, or Harry?

Offline pfloor

  • *****
  • 889
  • +1/-0
Logging on as one of the mailbox names...?
« Reply #3 on: February 07, 2006, 05:21:52 AM »
Yes, there is always a way to un-secure your server.

What is it EXACTLY that you are trying to do here?

Paul
In life, you must either "Push, Pull or Get out of the way!"

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Logging on as one of the mailbox names...?
« Reply #4 on: February 07, 2006, 05:34:33 AM »
Well, I'd like to run the script(s) provided at this site:

http://batleth.sapienti-sat.org/projects/mb2md/ -- Converting Mbox mailboxes to Maildir format

...which specifically states that the script must be run as the user whos email it is, and specifically not to run it as root.

Course, if someone could point me to a similar script, or package, that does not have to be run as the user who's mailbox it is, and that would routinely be run as root, it would simplify things...

Offline pfloor

  • *****
  • 889
  • +1/-0
Logging on as one of the mailbox names...?
« Reply #5 on: February 07, 2006, 06:04:44 AM »
Ah, I thought you wanted something perminant.  You can use sudo and it will execute the script as a different user.

Log in as root and then:

First Read the manual:
man sudo

To run the script under tom you would do something like this:
sudo -u tom script_name -a -b -c

Hope this helps,

Paul
In life, you must either "Push, Pull or Get out of the way!"

Offline pfloor

  • *****
  • 889
  • +1/-0
Logging on as one of the mailbox names...?
« Reply #6 on: February 07, 2006, 06:07:23 AM »
By the way, why do you want to run this script?  SME 6 and 7 already use the Maildir format.
In life, you must either "Push, Pull or Get out of the way!"

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Logging on as one of the mailbox names...?
« Reply #7 on: February 07, 2006, 06:12:59 AM »
I am moving from an old mail server, which stores everything in MBox format, and I want to bring more than a decades worth of mails from there over to the new machine.

Offline pfloor

  • *****
  • 889
  • +1/-0
Logging on as one of the mailbox names...?
« Reply #8 on: February 07, 2006, 06:17:54 AM »
So you mean copy over old email, run script to change format then put SME server in service?

That would only require the script to be run once per user.  That should be fairly cut and dry.  It should also be fairly easy if there are not too many users.

Good luck and let us know how it goes.

Paul
In life, you must either "Push, Pull or Get out of the way!"

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Logging on as one of the mailbox names...?
« Reply #9 on: February 07, 2006, 07:11:47 PM »
Okay, one last question...  :-D

Where exactly should I stick scripts such as this one?  Does it go in /bin?  /sys?

And if it's not already installed, where do I stick the TimeDate perl library?

Offline pfloor

  • *****
  • 889
  • +1/-0
Logging on as one of the mailbox names...?
« Reply #10 on: February 07, 2006, 07:46:26 PM »
It looks like a perl script and I don't know much about perl and how to run those type of scripts.  Someone else will have to chime in on this or try searching these fora for more advise.

About the TimeDate perl library.  perl-TimeDate-1.16-1 is installed on my system.  I think is is there from the stock install but you should check your machine to make sure, type this at the command prompt:

rpm -q perl-TimeDate

This will tell you if it is installed and what version.



P.S. SME is stripped of development tools for security reasons.  You can't build RPMs on your SME machine without installing the tools.  If you need to install something, you need to find it in an RPM format that has been built for your version of SME or redhat 7.3 (for SME 6.0.1) or CentOS 4.2 (for SME 7).  Read around a bit here about how and which RPMs to install and what NOT to install.

Good luck

Paul
In life, you must either "Push, Pull or Get out of the way!"

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Logging on as one of the mailbox names...?
« Reply #11 on: February 07, 2006, 09:19:05 PM »
invoking
Code: [Select]
rpm -q perl-TimeDateyields
Code: [Select]
perl-TimeDate-1.16-1.2.el4.rfso I guess that's a good sign...  :-D

Offline pfloor

  • *****
  • 889
  • +1/-0
Logging on as one of the mailbox names...?
« Reply #12 on: February 07, 2006, 09:31:42 PM »
Quote from: "NomadOfNorad"
invoking
Code: [Select]
rpm -q perl-TimeDateyields
Code: [Select]
perl-TimeDate-1.16-1.2.el4.rfso I guess that's a good sign...  :-D

Than would be a good thing.  Also, It looks like you are on SME 7?

Remember, SME7 is not to a final release so be aware that all your work may or may not update to a final release.  The developers are trying VERY HARD to make updates from Pre1 to the final version work properly but they will not promise anything.  If it is a lot of work, you may want to experiment with one user, perfect the process and then do the whole server on a fresh, SME7 FINAL install just to make sure.

Just something for you to think about.

Paul
In life, you must either "Push, Pull or Get out of the way!"

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Logging on as one of the mailbox names...?
« Reply #13 on: February 07, 2006, 09:55:57 PM »
Well, provided I get all the mbox files converted over to maildir boxes on the SME machine in the near term, it doesn't really matter much if the mb2md.pl script breaks with the move to the final-release version of SME.  At that point, all I'd really need to do is perform a backup of all the mailboxes to be on the safe side, then upgrade to the new version of SME.  All else fails, I just restore all the mailboxes from the backup after a fresh install of SME...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Logging on as one of the mailbox names...?
« Reply #14 on: February 08, 2006, 03:13:30 AM »
Quote from: "NomadOfNorad"
I am moving from an old mail server, which stores everything in MBox format, and I want to bring more than a decades worth of mails from there over to the new machine.


Netscape and Thunderbird can both open mbox files, and you can drag&drop to copy the contents into Maildir format via IMAP.