Hi
I have created this file:
/storage/.config/system.d/storage-srv.mount
[Unit]
Description=cifs mount script
Requires=network-online.service
After=network-online.service
Before=kodi.service
[Mount]
What=//fs/srv
Where=/storage/srv
Options=username=kodi,password=\!mypass\!,ro
Type=cifs
[Install]
WantedBy=multi-user.target
activated it with systemctl enable but see at systemctl status this:
[[0;1;31m●[[0m storage-srv.mount - cifs mount script
Loaded: loaded (/storage/.config/system.d/storage-srv.mount; enabled; vendor preset: enabled)
Active: [[0;1;31mfailed[[0m (Result: exit-code) since Sat 2017-01-21 20:21:15 CET; 7min ago
Where: /storage/srv
What: //fs/srv
Process: 763 ExecMount=/bin/mount //fs/srv /storage/srv -t cifs -o username=kodi,password=\!mypass\!,ro [[0;1;31m(code=exited, status=255)[[0m
Jan 21 20:20:45 wz-media systemd[1]: Mounting cifs mount script...
Jan 21 20:20:45 wz-media mount[763]: mount: mounting //fs/srv on /storage/srv failed: Permission denied
Jan 21 20:20:45 wz-media systemd[1]: [[0;1;39mstorage-srv.mount: Mount process exited, code=exited status=255[[0m
Jan 21 20:20:45 wz-media systemd[1]: [[0;1;31mFailed to mount cifs mount script.[[0m
Jan 21 20:20:45 wz-media systemd[1]: [[0;1;39mstorage-srv.mount: Unit entered failed state.[[0m
if I do it on cmd line with:
/bin/mount //fs/srv /storage/srv -t cifs -o username=kodi,password=\!mypass\!,ro
it does work...
what can be the problem?
('!mypass!' is not my real pass but I use '!' in my passwords, can this be a problem?)
Greetz