Page 1 of 1

Cannot send files to the basket bin

Posted: Tue May 28, 2024 6:48 pm
by pcfan
I have a partition sda3 which contains my files mounted in /home/username/DATA
In order to have access to it I was told to run sudo chown -R yourusername:yourusername /path
However, when I try to delete any file it says that the system (subsystem files) doesn't allow to send it to the basketbin (it is in spanish) so It will be eliminated.
How can I solve this?

Code: Select all

[CODE]Snapshot created on: 20231025_1318
System:
  Kernel: 6.1.0-21-amd64 [6.1.90-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-21-amd64 root=UUID=<filter> ro quiet splash
  Desktop: LXDE v: 0.10.1 info: lxpanel wm: Openbox v: 3.6.1 vt: 7 dm: LightDM v: 1.26.0
    Distro: Senpai Respin Lxde MX-23.3_x64 Libretto octubre 25 2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: LENOVO product: VIUS3 v: Lenovo IdeaPad S400 serial: <superuser required>
    Chassis: type: 10 v: Lenovo IdeaPad S400 serial: <superuser required>
  Mobo: LENOVO model: INVALID v: 31900004WIN8 STD SGL serial: <superuser required>
    UEFI-[Legacy]: LENOVO v: 6DCN92WW(V8.06) date: 02/21/2013
Battery:
  ID-1: BAT1 charge: 0 Wh (0.0%) condition: 24.7/N/A Wh volts: N/A model: LENOVO PABAS0241231
    type: Li-ion serial: <filter> status: not charging
CPU:
  Info: model: Intel Core i3-3217U bits: 64 type: MT MCP arch: Ivy Bridge gen: core 3 level: v2
    built: 2012-15 process: Intel 22nm family: 6 model-id: 0x3A (58) stepping: 9 microcode: 0x21
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 1015 high: 1056 min/max: 800/1700 scaling: driver: intel_cpufreq
    governor: ondemand cores: 1: 1018 2: 1056 3: 975 4: 1014 bogomips: 14367
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: conditional; RSB
    filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo driver: i915 v: kernel arch: Gen-7
    process: Intel 22nm built: 2012-13 ports: active: HDMI-A-1 off: LVDS-1 empty: DP-1,VGA-1
    bus-ID: 00:02.0 chip-ID: 8086:0166 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: crocus gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1360x768 s-dpi: 96 s-size: 359x203mm (14.13x7.99") s-diag: 412mm (16.24")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: LG (GoldStar) W1943 serial: <filter> built: 2009
    res: 1360x768 hz: 60 dpi: 85 gamma: 1.2 size: 406x229mm (15.98x9.02") diag: 466mm (18.4")
    ratio: 16:9 modes: max: 1360x768 min: 720x400
  Monitor-2: LVDS-1 note: disabled pos: primary model: LG Display 0x03cc built: 2012
    res: 1360x768 dpi: 112 gamma: 1.2 size: 310x174mm (12.2x6.85") diag: 355mm (14") ratio: 16:9
    modes: 1366x768
  API: OpenGL v: 4.2 Mesa 22.3.6 renderer: Mesa Intel HD Graphics 4000 (IVB GT2)
    direct-render: Yes
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Lenovo 7 driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20 class-ID: 0403
  API: ALSA v: k6.1.0-21-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Lenovo driver: r8169 v: kernel pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 01:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: eth0 state: down mac: <filter>
  Device-2: Qualcomm Atheros AR9485 Wireless Network Adapter vendor: Lenovo driver: ath9k
    v: kernel modules: wl pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 168c:0032
    class-ID: 0280
  IF: wlan0 state: up mac: <filter>
Drives:
  Local Storage: total: 223.57 GiB used: 135.98 GiB (60.8%)
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37240G size: 223.57 GiB block-size:
    physical: 512 B logical: 512 B speed: 3.0 Gb/s type: SSD serial: <filter> rev: ST17 scheme: GPT
  SMART Message: Unknown smartctl error. Unable to generate data.
Partition:
  ID-1: / raw-size: 39.35 GiB size: 37.68 GiB (95.77%) used: 19.48 GiB (51.7%) fs: ext4
    block-size: 4096 B dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 3.72 GiB used: 3 MiB (0.1%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 39.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2312 libs: 1229 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/librewolf.list
    1: deb [arch=amd64] http://deb.librewolf.net bookworm main
  Active apt repos in: /etc/apt/sources.list.d/megasync.list
    1: deb [signed-by=/usr/share/keyrings/meganz-archive-keyring.gpg] https://mega.nz/linux/repo/Debian_12/ ./
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://espejito.fder.edu.uy/mxlinux/packages/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https://linux.teamviewer.com/deb stable main
Info:
  Processes: 191 Uptime: 30m wakeups: 2 Memory: 3.69 GiB used: 1.39 GiB (37.5%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: BIOS (legacy, CSM, MBR)
[/code]

Re: Cannot send files to the basket bin

Posted: Tue May 28, 2024 7:42 pm
by CharlesV
Ownership does not necessarily mean that you have the rights specified to write to a folder.

do an

Code: Select all

ls -l 

in that folder and see what rights you have in that folder. If you dont have rights to write, then you need to add them.

Re: Cannot send files to the basket bin

Posted: Tue May 28, 2024 8:02 pm
by Stevo
We have GUI tools in the file managers that allow to to look at and change permissions, too.

Re: Cannot send files to the basket bin

Posted: Tue May 28, 2024 9:09 pm
by towwire
I do not use LXDE, I use Xfce.

He said that...

Code: Select all

I have a partition sda3 which contains my files mounted in /home/username/DATA
In order to have access to it I was told to run sudo chown -R yourusername:yourusername /path
I would question his mount point. If the path was not correct then the sudo command will not do anything. Also if they use $USER:$USER then it replaces $USER with the username that was used to logged in.

I think that his path or mount point is most likely like this "/media/towwire/My_Data/" which is for one of mine. I have never mounted a partition in /$HOME, only used system links.

Re: Cannot send files to the basket bin

Posted: Wed May 29, 2024 12:36 am
by MXRobo
@pcfan
IIRC, you had a little trouble setting up the DATA partition - or whatever was used.
You may want to include that link, or at least the part indicating what you did.

Also, IIRC, I would not have done it the way that you did, BUT that's mostly because I really only know my method.

IIRC, CB bailed me out.

Good Luck

Re: Cannot send files to the basket bin  [Solved]

Posted: Wed May 29, 2024 3:56 pm
by fehlix
pcfan wrote: Tue May 28, 2024 6:48 pm I have a partition sda3 which contains my files mounted in /home/username/DATA
In order to have access to it I was told to run sudo chown -R yourusername:yourusername /path
However, when I try to delete any file it says that the system (subsystem files) doesn't allow to send it to the basketbin (it is in spanish) so It will be eliminated.
How can I solve this?
Some information are missing. E.g Which file system is the partition formatted with?
Further what file-manager is in use?
Does the file-manager support Trash/Wastebasket, and is normally "Send to Trash" working?
You can check wheter gvfs/gio-trashing is working
e.g by these steps on the terminal command line:
* Open terminal as normal user.
*change to the DATA mounted partition

Code: Select all

cd ~/DATA
* List current items with the Wastebaket/Trash

Code: Select all

gio trash --list
* Maybe clear /remove all items within the Trash:

Code: Select all

gio trash --empty
* Now the test:
create a TEST directory and change into, and create a testfile.txt

Code: Select all

mkdir TEST
cd TEST
echo This is a Test. > testfile.txt
* Now send this testfile to the wastebasket:

Code: Select all

gio trash testfile.txt
* list the trash-bin:

Code: Select all

gio trash --list
Open the filemanager and check the Trash item "testfile.txt"
is visable.
If not, the file manger you are use might not support trashing
for files located on another mounted partition.
If so, consider another filemanager to be used.
HTH
PS:
Maybe this:
WIthin PCmanFM preferences window -> General
do untick "Erase files on removable media instead of "trash can" creation"
as show in these pictures:
enable-trash-pcmanfm-for-mounts-en.png
in Spanish:
enable-trash-pcmanfm-for-mounts-es.png

Re: Cannot send files to the basket bin

Posted: Sat Jul 06, 2024 11:45 am
by pcfan
Dear Friends, I am so sorry I couldn't return earlier with the info you need. I will answer each one right now.

Re: Cannot send files to the basket bin

Posted: Sat Jul 06, 2024 11:47 am
by pcfan
I am editing this post since I realize I am in a different machine... I will return as soon as possible.

Re: Cannot send files to the basket bin

Posted: Sat Jul 13, 2024 11:02 am
by pcfan
I am sorry it toke me so long to return. I have been working in another computer an left this one aside
In fact I had to pick it up from my office.

[/quote]
Some information are missing. E.g Which file system is the partition formatted with?

Partition is GPT, dev/sda2 ext4 , dev/sda3 (DATA) ext4


Further what file-manager is in use?
PCManFM

Does the file-manager support Trash/Wastebasket, and is normally "Send to Trash" working?
Yes

You can check wheter gvfs/gio-trashing is working
e.g by these steps on the terminal command line:
* Open terminal as normal user.
*change to the DATA mounted partition

Code: Select all

  
* List current items with the Wastebaket/Trash

Code: Select all

gio trash --list

It doesn't show anything, it was clean
It returns to cd ~/DATA


* Maybe clear /remove all items within the Trash:

Code: Select all

gio trash --empty
* Now the test:
create a TEST directory and change into, and create a testfile.txt

Code: Select all

mkdir TEST
cd TEST
echo This is a Test. > testfile.txt
* Now send this testfile to the wastebasket:

Code: Select all

gio trash testfile.txt
* list the trash-bin:

Code: Select all

gio trash --list
Open the filemanager and check the Trash item "testfile.txt"
is visable.

This worked perfectly :happy:

If not, the file manger you are use might not support trashing
for files located on another mounted partition.
If so, consider another filemanager to be used.
HTH
PS:
Maybe this:
WIthin PCmanFM preferences window -> General
do untick "Erase files on removable media instead of "trash can" creation"
as show in these pictures:
enable-trash-pcmanfm-for-mounts-en.png
in Spanish:
enable-trash-pcmanfm-for-mounts-es.png
[/quote]

This last step did the trick (so far) . THANK YOU ! :number1:

It seems my systems understands that sda3 is an external unit. Because now I can move the files there to the basket-bin.

Re: Cannot send files to the basket bin

Posted: Sat Jul 13, 2024 11:04 am
by pcfan
CharlesV wrote: Tue May 28, 2024 7:42 pm Ownership does not necessarily mean that you have the rights specified to write to a folder.

do an

Code: Select all

ls -l 

in that folder and see what rights you have in that folder. If you dont have rights to write, then you need to add them.

Code: Select all

total 0
I don't know what this mean or how to change it.

Re: Cannot send files to the basket bin

Posted: Sat Jul 13, 2024 11:05 am
by pcfan
MXRobo wrote: Wed May 29, 2024 12:36 am @pcfan
IIRC, you had a little trouble setting up the DATA partition - or whatever was used.
You may want to include that link, or at least the part indicating what you did.

Also, IIRC, I would not have done it the way that you did, BUT that's mostly because I really only know my method.

IIRC, CB bailed me out.

Good Luck
let me know how to do this please.

Re: Cannot send files to the basket bin

Posted: Sat Jul 13, 2024 11:15 am
by CharlesV
that means you have no files in that folder / directory. In order to see your rights for that folder.. you need to be one folder above it and do this:

Code: Select all

ls -ld your_directory

ls is the list command.

- indicates the beginning of the command options.

l asks for a long list which includes the permissions.

d indicates that the list should concern the named directory itself; not its contents. If no directory name is given, the list output will pertain to the current directory.

Re: Cannot send files to the basket bin

Posted: Sat Jul 13, 2024 11:49 am
by DukeComposed
CharlesV wrote: Sat Jul 13, 2024 11:15 am you need to be one folder above it and do this:

Code: Select all

ls -ld your_directory

"ls -la" should also provide this info, since it will include the . and .. directories in its output.

Re: Cannot send files to the basket bin

Posted: Sat Jul 13, 2024 11:56 am
by CharlesV
DukeComposed wrote: Sat Jul 13, 2024 11:49 am
CharlesV wrote: Sat Jul 13, 2024 11:15 am you need to be one folder above it and do this:

Code: Select all

ls -ld your_directory

"ls -la" should also provide this info, since it will include the . and .. directories in its output.
Correct, I just wanted to get a little closer to 'the' folder', without all the other potential files etc.

Re: Cannot send files to the basket bin

Posted: Sat Jul 13, 2024 1:33 pm
by DukeComposed
CharlesV wrote: Sat Jul 13, 2024 11:56 am Correct, I just wanted to get a little closer to 'the' folder', without all the other potential files etc.
No disagreement there but if the directory is empty as we know it is, it wouldn't be a huge issue.

Re: Cannot send files to the basket bin

Posted: Sat Jul 13, 2024 3:02 pm
by MXRobo
pcfan wrote: Sat Jul 13, 2024 11:05 am
MXRobo wrote: Wed May 29, 2024 12:36 am @pcfan
...You may want to include that link, or at least the part indicating what you did...Good Luck
let me know how to do this please.
I just meant find your former url link and then simply paste it in a post.
I realize some time has elapsed since then, and others are addressing the issue.

Re: Cannot send files to the basket bin

Posted: Sat Jul 13, 2024 5:48 pm
by pcfan
CharlesV wrote: Sat Jul 13, 2024 11:15 am that means you have no files in that folder / directory. In order to see your rights for that folder.. you need to be one folder above it and do this:

Code: Select all

ls -ld your_directory

ls is the list command.

- indicates the beginning of the command options.

l asks for a long list which includes the permissions.

d indicates that the list should concern the named directory itself; not its contents. If no directory name is given, the list output will pertain to the current directory.

Code: Select all

ls -ld
drwx------ 24 siloff siloff 4096 jul 13 17:58 .
Hope this is what you are asking. : )

Re: Cannot send files to the basket bin

Posted: Sat Jul 13, 2024 6:27 pm
by CharlesV
Yup.. and that shows that your group owner permissions are not Read+writable.

Have a look here at the permissions you should have for a folder / file.

https://linuxhandbook.com/linux-file-permissions/

Re: Cannot send files to the basket bin

Posted: Mon Jul 15, 2024 11:44 pm
by pcfan
CharlesV wrote: Sat Jul 13, 2024 6:27 pm Yup.. and that shows that your group owner permissions are not Read+writable.

Have a look here at the permissions you should have for a folder / file.

https://linuxhandbook.com/linux-file-permissions/
thank you so very much!. I will save this website as pdf so I can read it step by step.

Re: Cannot send files to the basket bin

Posted: Tue Jul 16, 2024 11:02 am
by CharlesV
Your very welcome