LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-05-2017, 11:00 AM   #1
slackuser998
LQ Newbie
 
Registered: Sep 2009
Posts: 8

Rep: Reputation: 1
Slackware 14.2 & KDE comment out fstab entries


When I upgraded to Slackware 14.2 and started KDE, my fstab was changed by "something" automatically. What changes fstab?

This doesn't happen with XFCE. Which I'm now using.

I prefer my fstab, not KDE's. I still use the command line frequently and want my DVD & USB entries, in fstab, obeyed on the command line.

Slackware 14.1 did not have this problem. What changed?

Or am I through using KDE.
 
Old 09-05-2017, 11:35 AM   #2
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,217

Rep: Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179
KDE shouldn't be able to change the fstab, especially if you're running it as a normal user (you're not running it as root, right?). I've never had KDE change my fstab in the more than a decade I've been using it (including on 14.2).

Can you specify what changes were made?
 
2 members found this post helpful.
Old 09-06-2017, 09:58 AM   #3
slackuser998
LQ Newbie
 
Registered: Sep 2009
Posts: 8

Original Poster
Rep: Reputation: 1
More info

Bassmadrigal, Thanks for the response. I'll re-run kde and obtain copies of the fstab before and after and post them here in a day or so. I'm using XFCE at the moment, on my laptop at a coffee shop.

About running as root, I was definitely running as a normal user. I log in as a normal user and do my work. If I need to do something as root, I go to a terminal window and su to root. I rarely log in as root, and even more rarely start a gui as root. Starting a gui as root is only done if I'm digging into a gui problem.

The fstab here (laptop, the 64 bit fstab is similar) is:
/dev/sda1 swap swap defaults 0 0
/dev/sda2 / ext4 defaults 1 1
/dev/sda3 /home ext4 defaults 1 2
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
#
/dev/sr0 /dvd udf,iso9660 noauto,user,ro 0 0
#
/dev/sdb1 /usb0 vfat noauto,user,rw 0 0
/dev/sdc1 /usb1 vfat noauto,user,rw 0 0

Note: I manually create and maintain /dvd, /usb0 & /usb1 as specific mount points for use while working on the command line, either in a terminal or if I don't start the gui. These mount points save typing.

From my memory the changes made were that:
- The lines starting with: /dev/sr0, /dev/sdb1 & /dev/sdc1 were commented out.
- Lines added starting with "UUID=" but the mount point was in some obscure location.

All this was done on my main (non-internet) 64 bit machine. I'll start KDE on the 64 bit machine when I get home and post the changed fstab in a day or so.

Last edited by slackuser998; 09-06-2017 at 10:01 AM.
 
Old 09-06-2017, 12:44 PM   #4
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,217

Rep: Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179Reputation: 2179
Quote:
Originally Posted by slackuser998 View Post
Bassmadrigal, Thanks for the response. I'll re-run kde and obtain copies of the fstab before and after and post them here in a day or so. I'm using XFCE at the moment, on my laptop at a coffee shop.

About running as root, I was definitely running as a normal user. I log in as a normal user and do my work. If I need to do something as root, I go to a terminal window and su to root. I rarely log in as root, and even more rarely start a gui as root. Starting a gui as root is only done if I'm digging into a gui problem.

The fstab here (laptop, the 64 bit fstab is similar) is:
/dev/sda1 swap swap defaults 0 0
/dev/sda2 / ext4 defaults 1 1
/dev/sda3 /home ext4 defaults 1 2
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
#
/dev/sr0 /dvd udf,iso9660 noauto,user,ro 0 0
#
/dev/sdb1 /usb0 vfat noauto,user,rw 0 0
/dev/sdc1 /usb1 vfat noauto,user,rw 0 0

Note: I manually create and maintain /dvd, /usb0 & /usb1 as specific mount points for use while working on the command line, either in a terminal or if I don't start the gui. These mount points save typing.

From my memory the changes made were that:
- The lines starting with: /dev/sr0, /dev/sdb1 & /dev/sdc1 were commented out.
- Lines added starting with "UUID=" but the mount point was in some obscure location.

All this was done on my main (non-internet) 64 bit machine. I'll start KDE on the 64 bit machine when I get home and post the changed fstab in a day or so.
Thanks for the extra info.

I can say I've never had any issue like this on my computer, however, for many years, I've only had fixed drives listed in my fstab (basically since Slackware added the ability to automount them within the GUI). But, even if KDE were capable of doing this (which I've never heard of), I don't see how it's even possible since you're a normal user (unless you somehow modified the permissions of the fstab to allow normal users to write to it... this would allow KDE to do it, even though I don't think it contains anything to actually do it).

For KDE automount to work, it does need those devices to not have entries in the fstab (or at least have them commented out), but I don't know of any KDE utilities that even offer editing the fstab for you.

I'll definitely be interested to see the before and after. Maybe that will help provide some clues. Have you checked in your ~/.kde/Autostart/ to verify you don't have any erroneous programs/scripts in there? Are you ever prompted for your root password during the startup of KDE?
 
Old 09-06-2017, 01:51 PM   #5
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,120

Rep: Reputation: 302Reputation: 302Reputation: 302Reputation: 302
you didn't happen to remove or add some partitions to the drive that may have changed the numbering of the partitions /dev/??? of the system?
 
Old 09-06-2017, 02:41 PM   #6
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 1,207

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by slackuser998 View Post
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
This shit is probably made by (or for) GVFS (aka Gnome Virtual File System), a little crap used by XFCE...

So, I believe that the KDE is innocent!

Last edited by Darth Vader; 09-06-2017 at 04:55 PM.
 
1 members found this post helpful.
Old 09-07-2017, 03:21 AM   #7
elcore
Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 352

Rep: Reputation: Disabled
Quote:
Originally Posted by Darth Vader View Post
This shit is probably made by (or for) GVFS (aka Gnome Virtual File System), a little crap used by XFCE...

So, I believe that the KDE is innocent!
The gvfs thing is optional and XFCE doesn't touch /etc/fstab

I suspect this has something to do with udisks/udisks2 which do have escalated permission via dbus and kdesu.
In other words, it's possible to apply system wide changes like this one by running 'kdesu systemsettings'
 
1 members found this post helpful.
Old 09-07-2017, 03:31 AM   #8
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 1,207

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
@elcore

Why the KDE would care of a Gnome thingy like GVFS, which it does NOT use?

Meantime, the XFCE use the GVFS. Of course, optionally...

So, which one have interests there?

Last edited by Darth Vader; 09-07-2017 at 03:36 AM.
 
Old 09-07-2017, 03:38 AM   #9
elcore
Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 352

Rep: Reputation: Disabled
Quote:
Originally Posted by Darth Vader View Post
@elcore

Why the KDE would care of a Gnome thingy like GVFS, which it does NOT use?

Meantime, the XFCE use the GVFS. Of course, optionally...

So, which one have interests there?
The OP problem is not that the system adds gvfs in fstab, but drives and partitions.
 
Old 09-07-2017, 04:39 AM   #10
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 1,207

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by elcore View Post
The OP problem is not that the system adds gvfs in fstab, but drives and partitions.
Yes, and we have a sign about a presumptive automatic editing, just like the OP claims, that "something" edited his /etc/fstab.

So, what thing have interests to add this: comment=x-gvfs-show on a entry from /etc/fstab, Mr. Watson?

Last edited by Darth Vader; 09-07-2017 at 04:41 AM.
 
Old 09-07-2017, 09:50 AM   #11
slackuser998
LQ Newbie
 
Registered: Sep 2009
Posts: 8

Original Poster
Rep: Reputation: 1
Support data problem

I went digging into my 64 bit system. Unfortunately I can't replicate the problem. I set up fstab and all I could remember then started KDE. The fstab file was not touched. I tried different settings on the KDE auto mounter and could not replicate the fstab modifications. The KDE automounter failed in a different way. I'll have to dig further in my records on this problem. I have a set of DVD backups stacked over 6 inches high. I don't think I'll have anything new until early next week. I keep a lot of backups.

On the questions posed:
bassmadrigal: "Have you checked in your ~/.kde/Autostart/ to verify you don't have any erroneous programs/scripts in there? "
- I have put scripts in .../Autostart, but didn't check for this session.
- I'm reasonably careful about what goes in any Autostart stuff.

bassmadrigal: "Are you ever prompted for your root password during the startup of KDE? "
- Not that I remember. Not during this test session.

colorpurple21859: "you didn't happen to remove or add some partitions to the drive that may have changed the numbering of the partitions /dev/??? of the system?"
- No. I did a clean install of Slackware 14.2. I wipe and repartition the disk every 3 or 4 version updates. The installation of 14.2 was a clean install after a wipe/repatition of the hard disk.

elcore: "I suspect this has something to do with udisks/udisks2 which do have escalated permission via dbus and kdesu. In other words, it's possible to apply system wide changes like this one by running 'kdesu systemsettings'"
- This sounds familiar. The first time I looked into this (before I abandon KDE) online stuff pointed at dbus and udisks/udisks2. However, I couldn't find anything specific. A cursory examination of dbus and udisks indicated that there would be a lot of work to understand dbus/udisks then troubleshoot the problem. I decided at that time that changing from KDE to XFCE was a better use of my time.

Thanks for the interest and suggestions, all are appreciated. slackuser998.

Last edited by slackuser998; 09-07-2017 at 10:09 AM.
 
Old 09-11-2017, 09:48 AM   #12
slackuser998
LQ Newbie
 
Registered: Sep 2009
Posts: 8

Original Poster
Rep: Reputation: 1
Sorry guys, I can't find my backup data. I remember making it, but apparently failed to back it up properly. Since I can't provide support for this problem, please accept my apologies for not being properly prepared and mark this issue closed. slackuser998
 
Old 09-12-2017, 01:08 PM   #13
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 935

Rep: Reputation: Disabled
Did you checked time stamp? When was the last time when file was changed? If you have suspicions start process in crontab to verify time stamp of /etc/fstab, or any other way to control integrity of file, say four times daily backup, this way you, probably by lsof it would be possible to nasty process. But the only has right to change fstab, are permissions OK? Or probably there is process with suid root set, but maybe I am messing something.
 
Old 09-13-2017, 10:02 AM   #14
slackuser998
LQ Newbie
 
Registered: Sep 2009
Posts: 8

Original Poster
Rep: Reputation: 1
igadoter:
-- Did you checked time stamp?
No, I keep earlier versions, fstab.0, fstab.1 etc but didn't check the time stamps.

-- When was the last time when file was changed?
Slackware installs fstab. After basic installation, I do my customization. During customization I change the fstab (keeping the original as fstab.0). Rarely is there a need for me to change fstab afterwards. It has happened. I added "udf" to the cdrom/dvd later. Other than that fstab doesn't change (except for troubleshooting)

-- If you have suspicions start process in crontab to verify time stamp of /etc/fstab, or any other way to control integrity of file, say four times daily backup, this way you, probably by lsof it would be possible to nasty process.
Crontab is a good idea, I thought of backing up fstab to a data file to get a better idea. However, I went the easy way out and moved to xfce.

-- But the only has right to change fstab, are permissions OK?
The permissions are correct chmod: 644, owner: root, group:root

Thanks for the suggestions.
 
  


Reply

Tags
fstab, kde


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] fstab entries with none adrhc Linux - Newbie 6 01-10-2014 04:59 AM
cifs mount & fstab entries JeffC1 Linux - Newbie 15 05-15-2009 06:51 PM
Creating fstab entry for Linux (Red Hat 9 & Slackware 11) p2pfire Linux - Hardware 3 01-06-2007 03:38 AM
fstab - # character but not comment curmudgeon42 Linux - General 3 08-18-2004 09:34 PM
Entries in /etc/fstab kamransoomro84 Linux - General 6 05-05-2004 09:32 AM

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

All times are GMT -5. The time now is 11:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration