You are not logged in.

#1 2020-05-03 16:42:56

dvaneijsden
Member
Registered: 2020-05-03
Posts: 5

Mount network share

Hi,
I'am running KDE with an ecryptfs encrypted home directory.
I want to mount a network share with my credentials located on my home directory.
I tried to much.

How can I do this?

KR,
Dietmar

Offline

#2 2020-05-03 16:46:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: Mount network share

dvaneijsden wrote:

I tried to much.

Yet said too little.

What have you tried?  What went wrong?  What errors / journal messages did you get?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-05-03 17:25:28

dvaneijsden
Member
Registered: 2020-05-03
Posts: 5

Re: Mount network share

autostart-scripts:

[dietmar@desktop autostart-scripts]$ cat mount.sh
#!/usr/bin/bash
mount -t cifs //192.168.xxx.x/Media /mnt/Media -o workgroup=workgroup,iocharset=utf8,guest

results in:
03-05-2020 19:08    plasma_session    org.kde.plasma.session: autostart script ("/home/dietmar/.config/autostart-scripts/mount.sh") finished with exit code  1

Is this because mount needs sudo??

=====
the others I will test and come back

Offline

#4 2020-05-03 17:35:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: Mount network share

dvaneijsden wrote:

Is this because mount needs sudo??

As written, yes.  But if you put it in your fstab properly you can mount it as a regular user.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2020-05-03 17:41:32

dvaneijsden
Member
Registered: 2020-05-03
Posts: 5

Re: Mount network share

can fstab access my credentials on my encrypted home directory?

Last edited by dvaneijsden (2020-05-03 17:43:15)

Offline

#6 2020-05-03 17:42:58

dvaneijsden
Member
Registered: 2020-05-03
Posts: 5

Re: Mount network share

I also tried pam_mount, but I cannot reproduce the error

Offline

#7 2020-05-03 18:03:25

dvaneijsden
Member
Registered: 2020-05-03
Posts: 5

Re: Mount network share

Adding the follow line works with mount -a, but not after a reboot
//192.168.xxx.x/Media  /mnt/Media  cifs  guest,uid=1000,iocharset=utf8  0  0

this is the result:
03-05-2020 19:50    kernel    CIFS VFS: cifs_mount failed w/return code = -2

I think the network interface is not up yet.

Last edited by dvaneijsden (2020-05-03 18:24:53)

Offline

#8 2020-05-03 18:07:13

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Mount network share

dvaneijsden wrote:

What do you think?


I think you should learn to use the edit button and stop bumping the thread:
https://wiki.archlinux.org/index.php/Co … ct#Bumping


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB