LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-29-2023, 09:05 PM   #1
sheetrock
LQ Newbie
 
Registered: Aug 2023
Distribution: Debian 12
Posts: 5

Rep: Reputation: 0
Debian 11 revoked mount-point privileges and created second mount-point with privileges


System revoked mount-point privileges and created second mount-point with privileges.

Background: User account with sudo privileges.

Issue: New mount point created, with read, write, execute permissions, by system without notifying user. Read, write, execute privileges for original mount-point revoked by system. New mount-point has the same name as original mount-point except for a "1" appended to the end.

Same happened with two other connected drives at the same time: 2nd internal data hard drive and a USB flash device. Again, the new mount-point names are the same except for being appended with a "1".

So far all I've done is search the net, with no results.

I should probably mention that I remember accidentally hitting some keyboard keys prior to this discovery.

I know how to configure permissions. I'm only curious as to how or why this happened. Everything still works okay as long as I take the new mount-point into consideration. This system has functioned for several years with no issues. Hats off to the Debian crew for a terrific OS.


Hard drives:
1 TB boot SSD
6 TB data hard drive
4 TB data hard drive
500 GB USB memory device

Two data hard drives are mounted manually after boot (no entries in fstab for these two data hard drives). Also, USB memory device connected and auto mounts.


Hardware about ten years old
OS Debian 11 stable (with all current updates)
CPU Intel Core i7 5930K (Haswell-E)
RAM 16 GB DDR4 Corsair
Chipset Intel X99
Motherboard Asus X99 Deluxe
Video MSI GTX 970
 
Old 08-30-2023, 02:52 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,506

Rep: Reputation: Disabled
Normally a '1' gets appended when a file gets duplicated, if you remove the one with a '1' you should be able to access your data with the original filename, you appear to have 'masked' the original mount point somehow.
 
Old 09-01-2023, 09:02 PM   #3
sheetrock
LQ Newbie
 
Registered: Aug 2023
Distribution: Debian 12
Posts: 5

Original Poster
Rep: Reputation: 0
fatmac, thank you for your reply.

Of course a '1' gets appended when a file is duplicated. I should have known that. I've seen that enough times before. Thanks for the reminder.

I can see two ways to remedy this: delete the original mount-points and rename the new mount-points per your suggestion or restore privileges to the original mount-points and delete the duplicate mount-points. Again, though, I can live with things the way they are. I’m only curious as to why the mount-points changed the way they did. Anyway, thanks for the "masked" hint. It gives me something to look into and learn more about.
 
Old 09-02-2023, 03:04 PM   #4
only-connect
LQ Newbie
 
Registered: Sep 2023
Location: UK
Posts: 15

Rep: Reputation: 1
Quote:
Originally Posted by sheetrock View Post
System revoked mount-point privileges and created second mount-point with privileges.
Who is 'System' please?
Is it root? Or something else?

Quote:
Issue: New mount point created, with read, write, execute permissions, by system without notifying user.
If user does not know of the new mountpoint - then user did not create the new mount point.
Therefore root created the new mountpoint.

Are you root or just user?

Quote:
New mount-point has the same name as original mount-point except for a "1" appended to the end.
Isn't that the naming convention to say the the directory has been duplicated?

Quote:
Same happened with two other connected drives at the same time: 2nd internal data hard drive and a USB flash device. Again, the new mount-point names are the same except for being appended with a "1".
The new duplicated mount-point appears to have 'acquired' the privileges of the original mount-point.
But the privileges of the original mount-point has now been lost. Somehow.
So the mount-point is duplicated and the privileges have been 'passed' to the new mount-point. IMO.

Quote:
I should probably mention that I remember accidentally hitting some keyboard keys prior to this discovery.
But of course.
We've all been there.

Quote:
I'm only curious as to how or why this happened. Everything still works okay as long as I take the new mount-point into consideration.
Using your terminal please state the output of:
Code:
$ cat /etc/fstab
 
Old 09-03-2023, 02:59 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336
if I need to guess you removed those drives without umount-ing, therefore the old mount point was just broken. When you plugged the drive in the OS had to find another mount point.
 
Old 09-04-2023, 01:23 PM   #6
sheetrock
LQ Newbie
 
Registered: Aug 2023
Distribution: Debian 12
Posts: 5

Original Poster
Rep: Reputation: 0
"Who is 'System' please?
Is it root? Or something else?"

'System" is Debian 12.
The only root user is me, which I rarely use.
I always work from a limited user account.
I'm the only user on the computer.

"New mount-point has the same name as original mount-point except for a "1" appended to the end.
Isn't that the naming convention to say that the directory has been duplicated?"
Yes. And, I should have realized that. I’m still new to Linux.

"Same happened with two other connected drives at the same time: 2nd internal data hard drive and a USB flash device. Again, the new mount-point names are the same except for being appended with a "1".
The new duplicated mount-point appears to have 'acquired' the privileges of the original mount-point.
But the privileges of the original mount-point has now been lost. Somehow."
So the mount-point is duplicated and the privileges have been 'passed' to the new mount-point. IMO.
Correct.

I should probably mention again that the two internal hard drives do not have entries in fstab. I mount these manually after booting.
I should also mention that the two internal hard drives show in the file manager prior to mounting.

Did I mention that:
My DE is XFCE 4.16?
This Debian12 OS dual boots with Windows 10 on a 1TB SSD?

Today, 09/04/23, While hesitant, but after much reading, I deleted original and duplicated mount-points, rebooted, manually mounted both internal hard drives and everything seems to be back to normal, though, I seem to have lost some trust in this system.

Again, thanks to everyone for replying.

/etc/fstab

valuedclient@cscorsair:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=59f90319-9bcf-4a9b-85e3-8df7d48fa1c4 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=9ECD-8705 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda9 during installation
UUID=9ceb47e1-d2b2-434e-ae66-72d4969e1ff8 /home ext4 defaults 0 2
# /tmp was on /dev/sda8 during installation
UUID=a1082c26-9fc7-4411-97b0-532a8f844831 /tmp ext4 defaults 0 2
# /var was on /dev/sda6 during installation
UUID=e27ef222-9dfa-4a73-ab81-cd68cc2440ad /var ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=5e222906-1c44-4cea-8a98-6e873a4ad2d9 none swap sw 0 0
valuedclient@cscorsair:~$ ^C
 
Old 09-04-2023, 07:16 PM   #7
sheetrock
LQ Newbie
 
Registered: Aug 2023
Distribution: Debian 12
Posts: 5

Original Poster
Rep: Reputation: 0
Okay, okay, I see the quote button down there in the corner.
 
Old 09-04-2023, 07:16 PM   #8
sheetrock
LQ Newbie
 
Registered: Aug 2023
Distribution: Debian 12
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
if I need to guess you removed those drives without umount-ing, therefore the old mount point was just broken. When you plugged the drive in the OS had to find another mount point.
No. These are SATA internal drives.
 
Old 09-17-2023, 02:06 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Quote:
I should probably mention that I remember accidentally hitting some keyboard keys prior to this discovery.
I can only guess that maybe you might have tried putting the system into suspend or hibernation by accident for a moment which might of temporarily removed power (or something similar) to the drives. For the two internal drives I would add a fstab entry using their UUID but add the noauto,users option so they do not automatically mount on startup. With the latter option you can then mount them at will as your regular user if desired.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting Revoked SSL Certificate dslehman Linux - Software 3 11-08-2010 07:14 PM
[SOLVED] OpenVPN Certs not getting revoked pkhera_2001 Linux - Software 2 04-14-2010 01:42 AM
Openssl - verify wheather certificate is revoked djgerbavore Linux - Security 1 11-21-2005 07:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration