F5F Stay Refreshed Software Operating Systems Remove files from a Linux CIFS Windows share using the appropriate tools.

Remove files from a Linux CIFS Windows share using the appropriate tools.

Remove files from a Linux CIFS Windows share using the appropriate tools.

Pages (2): 1 2 Next
B
bushminecraft
Member
189
06-18-2016, 10:28 AM
#1
I recently configured a Linux server to serve as a Plex client, with your Windows 10 machine handling file storage. Cifs is used to automatically mount the shared folder on the Linux box so Plex can access it at startup without manual mounting after reboots. The issue arises when attempting to delete files in Plex or via terminal—files are reported write-protected and removal fails. This behavior differs from other Windows systems where deletions succeed. Is there a method to enable your Linux machine to remove files from this Windows share?
B
bushminecraft
06-18-2016, 10:28 AM #1

I recently configured a Linux server to serve as a Plex client, with your Windows 10 machine handling file storage. Cifs is used to automatically mount the shared folder on the Linux box so Plex can access it at startup without manual mounting after reboots. The issue arises when attempting to delete files in Plex or via terminal—files are reported write-protected and removal fails. This behavior differs from other Windows systems where deletions succeed. Is there a method to enable your Linux machine to remove files from this Windows share?

X
xXJay_BugXx
Senior Member
559
06-19-2016, 11:03 AM
#2
I would verify the read and write permissions along with the owner of the share. For instance, using a method like (unsafe but powerful) Chmod "folderpath like /usr/share/plex or you name it -r 777" would set the access to allow reading, writing, and executing for all users within that folder and its subfolders.
X
xXJay_BugXx
06-19-2016, 11:03 AM #2

I would verify the read and write permissions along with the owner of the share. For instance, using a method like (unsafe but powerful) Chmod "folderpath like /usr/share/plex or you name it -r 777" would set the access to allow reading, writing, and executing for all users within that folder and its subfolders.

J
JosephGamez
Member
141
06-19-2016, 08:00 PM
#3
Thanks, didn't expect that file permissions on the linux side would play a role. Just started into linux, and learning.
J
JosephGamez
06-19-2016, 08:00 PM #3

Thanks, didn't expect that file permissions on the linux side would play a role. Just started into linux, and learning.

M
MacManTyler
Member
178
06-19-2016, 09:26 PM
#4
I believed it would function, yet it appears to apply only to the root account. The file permissions remain the same. "drwxr-xr-x. 2 500 500 0 Dec 1"
M
MacManTyler
06-19-2016, 09:26 PM #4

I believed it would function, yet it appears to apply only to the root account. The file permissions remain the same. "drwxr-xr-x. 2 500 500 0 Dec 1"

Y
ylyes4
Senior Member
572
06-19-2016, 10:08 PM
#5
It turned up in the mount command. I included "dir_mode=0755,file_mode=0755" and switched it to "dir_mode=0777,file_mode=0777". There are risks when following instructions without fully understanding them. I've never worked with file permissions before, so I assumed it would work fine, copied it, and it mounted.
Y
ylyes4
06-19-2016, 10:08 PM #5

It turned up in the mount command. I included "dir_mode=0755,file_mode=0755" and switched it to "dir_mode=0777,file_mode=0777". There are risks when following instructions without fully understanding them. I've never worked with file permissions before, so I assumed it would work fine, copied it, and it mounted.

M
MikkeJakke
Junior Member
35
06-20-2016, 02:25 AM
#6
Ensure the share is placed in a folder within your home directory, avoiding locations needing root privileges for better security. Could you tell me which distribution you're running? If you're using KDE Plasma, setting up the share via Dolphin's file manager is much simpler than modifying configuration files.
M
MikkeJakke
06-20-2016, 02:25 AM #6

Ensure the share is placed in a folder within your home directory, avoiding locations needing root privileges for better security. Could you tell me which distribution you're running? If you're using KDE Plasma, setting up the share via Dolphin's file manager is much simpler than modifying configuration files.

M
MiguelHalcon
Member
61
06-22-2016, 02:38 PM
#7
The main issue is that setting permissions to 777 is very unsafe. Try to prevent this whenever possible. The fix likely involves changing the directory owner. Check if commands like "sudo chown -R $USER /path/to/plex/library" help.
M
MiguelHalcon
06-22-2016, 02:38 PM #7

The main issue is that setting permissions to 777 is very unsafe. Try to prevent this whenever possible. The fix likely involves changing the directory owner. Check if commands like "sudo chown -R $USER /path/to/plex/library" help.

K
Kyle826
Junior Member
6
06-28-2016, 08:54 PM
#8
You could simply switch the directory to a subfolder within your user profile under the home directory. This approach avoids exposing unrestricted access and is safer.
K
Kyle826
06-28-2016, 08:54 PM #8

You could simply switch the directory to a subfolder within your user profile under the home directory. This approach avoids exposing unrestricted access and is safer.

J
JEFF_JEFFERSON
Senior Member
627
06-28-2016, 09:27 PM
#9
I attempted that initially, but it failed. I suspect the configuration is already handled in the mount command within fstab.
J
JEFF_JEFFERSON
06-28-2016, 09:27 PM #9

I attempted that initially, but it failed. I suspect the configuration is already handled in the mount command within fstab.

K
Kimplaze
Member
216
06-29-2016, 07:27 PM
#10
The Plex server operates as a service, meaning it can't be accessed directly via /home. I relocated the Plex library to a separate folder specifically for the Plex media.
K
Kimplaze
06-29-2016, 07:27 PM #10

The Plex server operates as a service, meaning it can't be accessed directly via /home. I relocated the Plex library to a separate folder specifically for the Plex media.

Pages (2): 1 2 Next