LINUX.ORG.RU

История изменений

Исправление system-root, (текущая версия) :

Да. А причём тут это?

у меня например нет. по этому могу позволить иметь одного пользователя для шары и торрентов.

@storage:/share/torrents$ ls -lha
total 4.5G
drwxr-xr-x  7 nobody nogroup 4.0K Nov 18 05:00 .
drwxr-xr-x  7 nobody nogroup 4.0K Nov 18 06:24 ..
drwxr-xr-x  2 nobody nogroup 4.0K Nov 17 17:05 .incomplete
-rw-rw-rw-  1 nobody nogroup 825M Nov 10 18:45 ubuntu-16.04.3-server-amd64.iso
-rw-rw-rw-  1 nobody nogroup 796M Nov 10 18:47 ubuntu-16.04.3-server-i386.iso
-rw-rw-rw-  1 nobody nogroup 1.4G Nov 10 18:48 ubuntu-17.10-desktop-amd64.iso
-rw-rw-rw-  1 nobody nogroup 745M Nov 10 18:45 ubuntu-17.10-server-amd64.iso
-rw-rw-rw-  1 nobody nogroup 743M Nov 10 18:47 ubuntu-17.10-server-i386.iso
@storage:~$ systemctl cat transmission-daemon.service 
# /lib/systemd/system/transmission-daemon.service
[Unit]
Description=Transmission BitTorrent Daemon
After=network.target

[Service]
User=nobody
Type=notify
ExecStart=/usr/bin/transmission-daemon -f --log-error --config-dir /usr/local/etc/transm
ExecStop=/bin/kill -s STOP $MAINPID
ExecReload=/bin/kill -s HUP $MAINPID

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/transmission-daemon.service.d/override.conf
[Service]
LimitNOFILE=65536
MemoryHigh=400M
MemoryMax=500M
CPUQuota=80%

@storage:~$ testparm
[global]
	bind interfaces only = Yes
	interfaces = enp3s0
	server string = storage
	workgroup = LOCAL
	domain master = No
	local master = No
	load printers = No
	name resolve order = bcast host
	server min protocol = SMB2
	unix extensions = No
	auth methods = guest sam_ignoredomain
	map to guest = Bad Password
	security = USER
	dns proxy = No
	idmap config * : backend = tdb
	follow symlinks = No
	wide links = Yes
	create mask = 0666


[Share]
	comment = Share
	path = /share
	guest ok = Yes
	read only = No

Исходная версия system-root, :

Да. А причём тут это?

у меня например нет. по этому могу позволить иметь одного пользователя для шары и торрентов.

@storage:/share/torrents$ ls -lha
total 4.5G
drwxr-xr-x  7 nobody nogroup 4.0K Nov 18 05:00 .
drwxr-xr-x  7 nobody nogroup 4.0K Nov 18 06:24 ..
drwxr-xr-x  2 nobody nogroup 4.0K Nov 17 17:05 .incomplete
-rw-rw-rw-  1 nobody nogroup 825M Nov 10 18:45 ubuntu-16.04.3-server-amd64.iso
-rw-rw-rw-  1 nobody nogroup 796M Nov 10 18:47 ubuntu-16.04.3-server-i386.iso
-rw-rw-rw-  1 nobody nogroup 1.4G Nov 10 18:48 ubuntu-17.10-desktop-amd64.iso
-rw-rw-rw-  1 nobody nogroup 745M Nov 10 18:45 ubuntu-17.10-server-amd64.iso
-rw-rw-rw-  1 nobody nogroup 743M Nov 10 18:47 ubuntu-17.10-server-i386.iso
@storage:~$ systemctl cat transmission-daemon.service 
# /lib/systemd/system/transmission-daemon.service
[Unit]
Description=Transmission BitTorrent Daemon
After=network.target

[Service]
User=nobody
Type=notify
ExecStart=/usr/bin/transmission-daemon -f --log-error --config-dir /usr/local/etc/transm
ExecStop=/bin/kill -s STOP $MAINPID
ExecReload=/bin/kill -s HUP $MAINPID

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/transmission-daemon.service.d/override.conf
[Service]
LimitNOFILE=65536

#[Slice]
MemoryHigh=400M
MemoryMax=500M
CPUQuota=80%

@storage:~$ testparm
[global]
	bind interfaces only = Yes
	interfaces = enp3s0
	server string = storage
	workgroup = LOCAL
	domain master = No
	local master = No
	load printers = No
	name resolve order = bcast host
	server min protocol = SMB2
	unix extensions = No
	auth methods = guest sam_ignoredomain
	map to guest = Bad Password
	security = USER
	dns proxy = No
	idmap config * : backend = tdb
	follow symlinks = No
	wide links = Yes
	create mask = 0666


[Share]
	comment = Share
	path = /share
	guest ok = Yes
	read only = No