summaryrefslogtreecommitdiff
path: root/x11-misc/pcmanfm-qt-share/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-01-08 00:40:40 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-01-08 00:40:40 +0000
commit4f0a4c93c2b5ae8a1eb80edeb99bc04f6a8ce4b9 (patch)
tree95848fe4858a9b6ab8bf2a39ef43ec925ae7d949 /x11-misc/pcmanfm-qt-share/files
parentd6d571ef747c1a9a0a557a1d4bb913d092a3a34c (diff)
net-fs/samba-config-redcore && x11-misc/pcmanfm-qt-share : prepare samba usershares
Diffstat (limited to 'x11-misc/pcmanfm-qt-share/files')
-rw-r--r--x11-misc/pcmanfm-qt-share/files/ShareReadOnly.desktop2
-rw-r--r--x11-misc/pcmanfm-qt-share/files/ShareReadWrite.desktop4
-rw-r--r--x11-misc/pcmanfm-qt-share/files/Unshare.desktop8
3 files changed, 11 insertions, 3 deletions
diff --git a/x11-misc/pcmanfm-qt-share/files/ShareReadOnly.desktop b/x11-misc/pcmanfm-qt-share/files/ShareReadOnly.desktop
index e3ef10ac..7cebbc3b 100644
--- a/x11-misc/pcmanfm-qt-share/files/ShareReadOnly.desktop
+++ b/x11-misc/pcmanfm-qt-share/files/ShareReadOnly.desktop
@@ -1,6 +1,6 @@
[Desktop Entry]
Type=Action
-Name=Samba Network Share (readonly)
+Name=Samba network share (readonly)
Profiles=profile-zero;
[X-Action-Profile profile-zero]
diff --git a/x11-misc/pcmanfm-qt-share/files/ShareReadWrite.desktop b/x11-misc/pcmanfm-qt-share/files/ShareReadWrite.desktop
index 44a3d165..7c30ff1c 100644
--- a/x11-misc/pcmanfm-qt-share/files/ShareReadWrite.desktop
+++ b/x11-misc/pcmanfm-qt-share/files/ShareReadWrite.desktop
@@ -1,8 +1,8 @@
[Desktop Entry]
Type=Action
-Name=Samba Network Share (readwrite)
+Name=Samba network share (readwrite)
Profiles=profile-zero;
[X-Action-Profile profile-zero]
-Exec=/usr/bin/net usershare add %w %f "" Everyone:F guest_ok=y && chmod = 777 %f
+Exec=/usr/bin/net usershare add %w %f "" Everyone:F guest_ok=y && chmod = 777 %f && find %f -type d -exec chmod 777 {} \; && find %f -type f -exec chmod 666 {} \;
Name=Default profile
diff --git a/x11-misc/pcmanfm-qt-share/files/Unshare.desktop b/x11-misc/pcmanfm-qt-share/files/Unshare.desktop
new file mode 100644
index 00000000..23db87d0
--- /dev/null
+++ b/x11-misc/pcmanfm-qt-share/files/Unshare.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Action
+Name=Samba network unshare
+Profiles=profile-zero;
+
+[X-Action-Profile profile-zero]
+Exec=/usr/bin/net usershare delete %w %f "" && chmod = 755 %f && find %f -type d -exec chmod 755 {} \; && find %f -type f -exec chmod 644 {} \;
+Name=Default profile