on my Laptop=Dell latitude E6510, RAM=8Gb, GPU=GT218 NVS 3100M, CPU=i7 Q 720 @ 1.60GHz running opensuse leap 42.3, plasma 5.10.5, KDE frameworks 5.37.0, KDE applications 17.08.0, Kernel 4.4.79-19-default, nvidia drivers.
In the past I mounted successfully an external AFS filesystem on a folder inserting in /etc/fstab this:
and, I don’t remember why, but I was able to access with dolphin /afspla2 as user.
now I inserted the same in etc/fstab and it works but I can access /afspla2 with dolphin only as root, opening dolphin as user /afspla2 disappear and is non accessible.
I tried to change ownership of /afspla2 to user=pla group=users but fail
I tried to mount in /home/pla/afspla2 but fail
the same happen mounting another filesystem like this:
sshfs procuste@192.168.1.2:/ /server/
how can I have my external filesystem monted in my folders accessible as user??
This is a laptop. You probably use Network Manager and a wireless connection. There will be no network (or sshfs possibility) until some rime after user login.
The fstab entry will provide the mount parameters for a subsequent mount command. Attempts to use it to automunt will belong to root, but I do not fully understand the parameters you are using. Why not forget fstab and create an entry in “~/.config/autostart” or “~/.config/autostart-scripts” to perform the mount (you may need to include a short “sleep”)? I would create a .desktop to provide a trivial graphical mount, and probably open Konsole in the mounted folder.
My clients tend to only work in a graphical environment, so their laptop workspaces are provided with a Dolphin “Place” with an ssh link to their Documents folder in the office. They do not need anything else.
yes, I put it in fstab to have the possibility to mount with command as root mount /afspla2 and then I would like access with dolphin as user (as root with dolphin is ok), in the past it worked, but now the /afspla2 folder once mounted disappear and is not accessible in dolphin as user that says that it doesn’t exist.
I don’t want automount, but the mount as root works, I cannot access as user
me too only grphical mode, yes, me too in my server with sftp and without password with this in dolphin
sftp://procuste@192.168.1.2/
,
but with afs in my company it is not enough, it seems that this in fstab
yes it is allowed for all users, …but, why does network should be implied in this issue, I can mount as root with command mount /afspla2, but, after /afspla2 is mounted I can only access as root and I would like to access to it as user…
I haven’t tested it on a network share but I think a polkit setting should allow ordinary users access to a folder
create the file /etc/polkit-1/rules.d/10-udisks2.rules
and paste
// See the polkit(8) man page for more information
// about configuring polkit.
// Allow udisks2 to mount devices without authentication
// for users in the "users" group.
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
action.id == "org.freedesktop.udisks2.filesystem-mount") &&
subject.isInGroup("users")) {
return polkit.Result.YES;
}
});
[quote=“I_A,post:7,topic:127532”]
I haven’t tested it on a network share but I think a polkit setting should allow ordinary users access to a folder
create the file /etc/polkit-1/rules.d/10-udisks2.rules
and paste
// See the polkit(8) man page for more information
// about configuring polkit.
// Allow udisks2 to mount devices without authentication
// for users in the "users" group.
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
action.id == "org.freedesktop.udisks2.filesystem-mount") &&
subject.isInGroup("users")) {
return polkit.Result.YES;
}
});
manythanks, it works :), but I cannot umount as user
…I don’t need more restrictive policy
…reading your link I tried to do this:
I created a file /etc/polkit-1/rules.d/10-udisks2-umount-pla-2017.rules wit this inside:
// See the polkit(8) man page for more information
// about configuring polkit.
// Allow udisks2 to unmount devices without authentication
// for users in the "users" group. fatta da me 2017-09-03set
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-other-seat" ||
action.id == "org.freedesktop.udisks2.filesystem-unmount-others") &&
subject.isInGroup("users")) {
return polkit.Result.YES;
}
});
with this org.freedesktop.udisks2.filesystem-mount-other-seat and this org.freedesktop.udisks2.filesystem-unmount-others taken from
pla@pla-3-TW:~> pkaction | grep mount
org.freedesktop.udisks2.filesystem-mount
org.freedesktop.udisks2.filesystem-mount-other-seat
org.freedesktop.udisks2.filesystem-mount-system
org.freedesktop.udisks2.filesystem-unmount-others
pla@pla-3-TW:~>
but evidently I’m not enough skilledlol!
how can I umount as user what I mounted??
// See the polkit(8) man page for more information
// about configuring polkit.
// Allow udisks2 to mount devices without authentication
// for users in the "users" group.
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
action.id == "org.freedesktop.udisks2.filesystem-mount" ||
action.id == "org.freedesktop.udisks2.filesystem-unmount-others") &&
subject.isInGroup("users")) {
return polkit.Result.YES;
}
});
If you’d like a skim of highlights regarding mounting FUSE filesystems,
You can possibly read the SDB: VMware Tools and everywhere you might see a VMware specific command, know there is a “fusermount” command that does the same thing generically. I’d recommend you read the fusermount and fuse.mount MAN pages too, but they’re kind of sparse. At least the SDB:VMware Tools page has examples.
the polkit method is convenient for mounting local partitions without editing /etc/fstab and automounting them but as you already have a line in your fstab maybe add these options
rw,user,exec so that the partition is user mountable and the user has both read write and execute permissions on it, maybe change your line to something like
… also, keep in mind if any file is open, or if you have that mount or one of its subdirectories open in a file browser, such as Dolphin, it will not unmount.
manythanks, lol!your speculation was right, …I removed the polkit rule and modified the fstab entry as you suggested, now if I mount as user can access as user, if I mount as root cannot access as user, I cannot umount as user, but I can always umount as root