You are not logged in.

#1 2023-12-07 18:12:14

pepper
Member
Registered: 2017-12-09
Posts: 135

[solved] amuled problem with permissions

Hello, I installed amule and amuleweb as described https://wiki.archlinux.org/title/AMule
the problem is that amule creates files under the "amule" user and I want to be able to read/write these files and export them in another computer where any user must be able to read/write without special configurations

I tried to edit the amule service with a drop-in service in this way:
file: /etc/systemd/system/amuled.service.d/override.conf
content:

### Editing /etc/systemd/system/amuled.service.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file

User=davide

### Edits below this comment will be discarded

### /etc/systemd/system/amuled.service
# [Unit]
# Description=aMule Daemon
# After=network.target
# 
# # This assumes that a user 'amule' exists, with a writeable home directory
# [Service]
# User=amule
# ExecStart=/usr/bin/amuled
# NoNewPrivileges=true
# 
# [Install]
# WantedBy=multi-user.target

to force the program to run under my user, that it seems the only solution.

I previously tried this (in the drop-in service):

SupplementaryGroups=davide
ProtectHome=no
ProtectSystem=no

and added myself in the amule group but I wasn't able to edit amule files and also I'm not sure if in this way I'll be able to edit files generated by amule after I exported them in another computer.

What is the best way to make the amule files readable/writeable by anyone?

Last edited by pepper (2023-12-07 20:30:41)

Offline

#2 2023-12-07 19:45:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,631

Re: [solved] amuled problem with permissions

http://wiki.amule.org/wiki/Amule.conf_file has eg.

PermissionsFiles=416
PermissionsDirs=488

As for the service drop-in
https://wiki.archlinux.org/title/Systemd#Drop-in_files

The key must be still placed in the appropriate section in the override file.

Online

#3 2023-12-07 20:28:41

pepper
Member
Registered: 2017-12-09
Posts: 135

Re: [solved] amuled problem with permissions

I put

### Editing /etc/systemd/system/amuled.service.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file

[Service]
User=davide

### Edits below this comment will be discarded
...

but amule crashes

× amuled.service - aMule Daemon
     Loaded: loaded (/usr/lib/systemd/system/amuled.service; enabled; preset: disabled)
    Drop-In: /etc/systemd/system/amuled.service.d
             └─override.conf
     Active: failed (Result: core-dump) since Thu 2023-12-07 21:24:42 CET; 7s ago
   Duration: 2.021s
    Process: 53488 ExecStart=/usr/bin/amuled (code=dumped, signal=ABRT)
   Main PID: 53488 (code=dumped, signal=ABRT)
        CPU: 680ms

dic 07 21:24:42 mulo amuled[53488]: [10] wxEventLoopBase::Run() in /usr/lib/libwx_baseu-3.2.so.0[0x7f046a6d8e52]
dic 07 21:24:42 mulo amuled[53488]: [11] wxAppConsoleBase::MainLoop() in /usr/lib/libwx_baseu-3.2.so.0[0x7f046a6b4f78]
dic 07 21:24:42 mulo amuled[53488]: [12] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-3.2.so.0[0x7f046a716410]
dic 07 21:24:42 mulo amuled[53488]: [13] ?? in /usr/bin/amuled[0x5638ef4710d3]
dic 07 21:24:42 mulo amuled[53488]: [14] ?? in /usr/lib/libc.so.6[0x7f046a045cd0]
dic 07 21:24:42 mulo amuled[53488]: [15] __libc_start_main in /usr/lib/libc.so.6[0x7f046a045d8a]
dic 07 21:24:42 mulo amuled[53488]: [16] ?? in /usr/bin/amuled[0x5638ef479195]
dic 07 21:24:42 mulo amuled[53488]: --------------------------------------------------------------------------------
dic 07 21:24:42 mulo systemd[1]: amuled.service: Main process exited, code=dumped, status=6/ABRT
dic 07 21:24:42 mulo systemd[1]: amuled.service: Failed with result 'core-dump'.

Offline

#4 2023-12-07 20:30:24

pepper
Member
Registered: 2017-12-09
Posts: 135

Re: [solved] amuled problem with permissions

the second time I executed it, it doesn't crash.
Thanks

Offline

#5 2023-12-07 20:30:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,631

Re: [solved] amuled problem with permissions

https://wiki.archlinux.org/title/Core_d … _core_dump
But there's likely a reason for the specific user and amule will most likely run into permission errors w/ existing files/directories if you try to run it as different user.

Did you see the amule.conf keys?

Online

Board footer

Powered by FluxBB