LukeSmithxyz / mutt-wizard

A system for automatically configuring mutt and isync with a simple interface and safe passwords
GNU General Public License v3.0
2.41k stars 383 forks source link

neomutt via mutt-wizard: admin account works, regular user account not working #901

Closed MarkLeakos closed 1 year ago

MarkLeakos commented 1 year ago

I am on Fedora 37 on a 2015 macbook pro (macos wiped - linux only); I have an admin user (markleakos) and a regular user (doc_mac). I have a gmail account which works great on the admin account but when I run this from the regular user I get an error: ~]$ mw -y markleakos@gmail.com

C: 0/1  B: 0/0  F: +0/0 *0/0 #0/0  N: +0/0 *0/0 #0/0
Maildir error: cannot open store '/home/markleakos/.local/share/mail/markleakos@gmail.com/'
C: 1/1  B: 0/0  F: +0/0 *0/0 #0/0  N: +0/0 *0/0 #0/0
Error: Cannot open database at /home/markleakos/.local/share/mail: Permission denied.

I think that mutt-wizard should be looking in /home/doc_mac/.local/share/mail (which does exist) . I installed mutt-wizard from the admin account but I would like to be able to use it from a regular user account. How do I correct this?

Thanks, Mark

(.00106 btc sent to bc1qacqfp36ffv9mafechmvk8f6r8qy4tual6rcm9p)

MarkLeakos commented 1 year ago

Thanks for your reply.

I don't want to use mutt on my admin account but since the install required 'sudo' I had to do it that way I thought.

Indeed, I would like to never have to go into my admin account. But some internal workings of mutt-wizard is looking into that path /home/markleakos/.local/share/mail instead of /home/doc_mac/.local/share/mail I was hoping to change that behavior if possible.

On Tue, Jan 10, 2023, 21:02 Junicchi @.***> wrote:

the files you created on root will not have write permission to standard users by default. Manually giving this permission to your standard user by performing: sudo chown -R doc_mac:doc_mac /home/markleakos/.local/share/mail should fix those permission denied errors.

But why would you use mutt-wizard or any other daily program in root at the first place? It doesn't sound secure and practical. Personally if i'd be regularly switching between my root and standard account I would setup the mutt-wizard in my standard account and update my mailbox from root as my standard alt account, for example from root: su doc_mac -c "mw -y @.***"

— Reply to this email directly, view it on GitHub https://github.com/LukeSmithxyz/mutt-wizard/issues/901#issuecomment-1378182274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLSK3ANRL6VYX34EMNHK6DWRYPF5ANCNFSM6AAAAAATVYBPMI . You are receiving this because you authored the thread.Message ID: @.***>

KebabLord commented 1 year ago

personally i would create a clean setup if accidentally installed the script as root. In order to have a clean install, i would first delete my mailboxes one by one using mw -d mail@address.com then on repo folder i would perform a sudo make uninstall then rm -rf ~/.password-store /home/markleakos/.local/share/mail ~/.config/mutt

after cleaning everything now it's good to make install on repo folder.

MarkLeakos commented 1 year ago

Thank you very much for your help. I appreciate it.

On Wed, Jan 11, 2023, 15:28 Junicchi @.***> wrote:

personally i would create a clean setup if accidentally installed the script as root. In order to have a clean install, i would first delete my mailboxes one by one using mw -d @.*** then on repo folder i would perform a sudo make uninstall then rm -rf ~/.password-store /home/markleakos/.local/share/mail ~/.config/mutt

after cleaning everything now it's good to make install on repo folder.

— Reply to this email directly, view it on GitHub https://github.com/LukeSmithxyz/mutt-wizard/issues/901#issuecomment-1379506263, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLSK3AHIWBW6MFV3VFO7ULWR4QXBANCNFSM6AAAAAATVYBPMI . You are receiving this because you authored the thread.Message ID: @.***>