You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

golover

Beginner

  • "golover" started this thread

Posts: 2

Location: germany

Occupation: dba

  • Send private message

1

Saturday, July 2nd 2005, 11:44am

How to use kmail with 3 users

I have an eMail account at my ISP.
There are 3 aliasas, so everyone of my family has its own virtual eMail address.
There are 3 separate users to log in to linux(KDE).
Each of the separate users has its own eMail account.
kmail is configured with POP3 and maildir format.
Everyone should be able to get all the messages (for all accounts) from the ISP. And everyone should be able to read (and maintain) all messages.

Therefore there is a public folder Mail, and links from every $HOME$Mail to this folder.

But this doesn't seem to work.
Everytime a users is checking mail, all the files, that are downloaded to that folder are created with the current owner, and marked not readable by the group or others. So if the next one tries to read an already downloaded message, he does see nothing (because he is not allowed to read).
I experimented with the run as other user, but this work only with the root password?

What can I try?

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Saturday, July 2nd 2005, 1:46pm

I guess this depends on the umask which is present when KDE starts up.

It will always create new files with the current owner ship unless the target filesystem forces different values, but a umask could always allow group rw or even world rw.

Of course a setup like this only works if single access i guaranteed. Multiple concurrent access will very likely break it.

A robust setup could be using a local IMAP server.

Cheers,
_
Qt/KDE Developer
Debian User

golover

Beginner

  • "golover" started this thread

Posts: 2

Location: germany

Occupation: dba

  • Send private message

3

Sunday, July 3rd 2005, 11:44am

Hi, thx for answering,

It is guaranteed, that there is no concurrent access. It's the same computer!
I do not know, where to change the umask.
I assume, that the umask setting is valid at least for all kde applications?
That would be no alternative. If I can set umask just for kmail, this would be great, but how?

Setting up an IMAP server seems to be not quite an easy task. Is there any advice how to setup an IMAp server?

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

4

Sunday, July 3rd 2005, 12:52pm

Quoted

Originally posted by golover
It is guaranteed, that there is no concurrent access. It's the same computer!
I do not know, where to change the umask.


Might depend on your distribution.
On mine (Debian unstable) it is something PAM can do.

Quoted


I assume, that the umask setting is valid at least for all kde applications?

Depending on where you set it, it can be valid for all kind of logins.

Quoted

If I can set umask just for kmail, this would be great, but how?

Hmm.
You could try a script which first sets umask and then starts KMail and use that instead of directly launching KMail.

Quoted


Setting up an IMAP server seems to be not quite an easy task. Is there any advice how to setup an IMAp server?


I am pretty sure that this is not as easy, I just wanted to point out how such setups can be done alternatively. :)

Cheers,
_
Qt/KDE Developer
Debian User