LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-30-2017, 09:34 AM   #1
grendelos
LQ Newbie
 
Registered: Dec 2002
Posts: 7

Rep: Reputation: 0
Oddity with LXDE and autofs/automount permissions


Greetings,

I have been searching far and wide and cannot seem to narrow this one down. I am running Debian Jessie with LXDE, but not booting to LXDE. I have a USB drive connected to my system and autofs configured and all Auto-mount features unchecked in LXDE/pcmanfm. So if I boot to command line and let autofs mount the USB drive, it mounts as root with permission of 777, just as I have specified in my auto.misc file. However, if I go into LXDE and let autofs mount the drive, it mounts as my user account and permissions of 700. To illustrate, I configured with 2 USB drives and let the first drive mount before loading LXDE and the second I mounted after going into LXDE:

drwxrwxrwx 13 root root 12288 Dec 31 1969 primary
drwx------ 2 grendelos grendelos 4096 Dec 31 1969 secondary

Here is what my auto.misc file has:

primary -fstype=vfat,rw,noatime,nodiratime,user,umask=0 :LABEL=LEXAR_BLUE
secondary -fstype=vfat,rw,noatime,nodiratime,user,umask=0 :LABEL=MC_4GB

So what I can't figure out is how LXDE ties into automount/autofs in order to prevent this from happening. Anyone have any idea?
 
Old 04-30-2017, 01:55 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
vaguely guessing that the mechanisms that take care of these things on LXDE are still active in the background, even when you disabled the gui features.
gvfs, udisks, udisks2 are things i'd look at. maybe you don't need them at all if autofs takes care of mounting?
 
Old 05-01-2017, 11:35 PM   #3
grendelos
LQ Newbie
 
Registered: Dec 2002
Posts: 7

Original Poster
Rep: Reputation: 0
After looking into your suggestion further, I believe you are right. I can confirm the problem is limited to LXDE as I did a parallel installation with Xfce and did not experience this issue.

Grendelos
 
  


Reply

Tags
autofs, lxde



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
autofs ldap automount bbolin Red Hat 3 11-06-2013 09:00 AM
can't get autofs to automount CD Drives bret381 Linux - Newbie 2 12-20-2009 07:12 AM
Autofs/Automount configuration problems Ccielogs Linux - Server 2 09-11-2009 02:21 AM
Autofs and automount socks Linux - Software 0 07-20-2004 12:28 PM
Setting up automount with autofs smattbac Slackware 0 10-12-2003 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:28 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