LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-23-2008, 10:36 PM   #1
Stroker
Member
 
Registered: Dec 2006
Location: The Nature Coast
Distribution: Slackware 01001101
Posts: 83

Rep: Reputation: 18
Why are /mnt /media perms: root root?


Hello,

I'm playing with my new SD Flash reader. Hald is off. So, I figure the proper place to mount flash cards would be /mnt/memory or /media/memory.

udev makes the SD reader node (sda1) perms: root plugdev 660.
Yet, everything in /mnt and /media is root root 755.

So I cannot write to it as user if I mount it there.

My questions are:

What is the logic behind making everything in /mnt and /media root root 755?
Shouldn't some of them, e.g. memory, be: root plugdev 660?

What is the intended manual mount point for Flash cards in Slackware?

Yes, I know how to change perms. I am just wondering what the logic is behind the default settings.

Thanks!
 
Old 04-23-2008, 11:38 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
So I cannot write to it as user if I mount it there.
Users cannot use the mount command.
 
Old 04-23-2008, 11:44 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
The logic is that Slackware as supplied is a secure setup. It is the responsibility of the system administrator to assign privileges to users.
 
Old 04-24-2008, 02:40 AM   #4
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
The point being .. you could still mount to your home dir .. just do a mkdir and mount ... (if you are in plugdev. .. what is mounted in /mnt or /media is decided by the administrator.
 
Old 04-24-2008, 12:54 PM   #5
Stroker
Member
 
Registered: Dec 2006
Location: The Nature Coast
Distribution: Slackware 01001101
Posts: 83

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by duryodhan View Post
.. what is mounted in /mnt or /media is decided by the administrator.
That is what I'm trying to understand. As admin, why would I mount something there if no one can use it? The device nodes are set up so I can easily add users via plugdev. Why then require admin the additional step of changing perms in /mnt or /media? Doesn't HAL mount flash devices for users to /media? Does HAL change /media/MOUNT_POINT perms on the fly?

Perhaps it would be better if I explain what I'm trying to do. As sys admin, if I want to set up my system to mount flash cards with user access, without using HAL, would either /mnt or /media be the logical/expected mount point? If yes, I am then expected (as sys admin) to also change perms and group for said mount point?

It just appears to me that Slackware is all set up for me (as admin) to easily add users via the plugdev group, id est. dev nodes and dev symlinks are pre-configured for it, then stumbles at the intended mount point? What am I missing?

Yes, it's not difficult to change perms. I'm just trying to learn proper/intended Slackware sys admin.

Thanks
 
Old 04-24-2008, 01:05 PM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
There's no need to change ownership or permissions of the mount point (that's required for fuse stuff, but this is not fuse-related).

http://slackwiki.org/Windows_Partitions
 
Old 04-24-2008, 10:21 PM   #7
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Quote:
As admin, why would I mount something there if no one can use it?
i said admin decides what is mounted there and he can also decide who gets perms to read/write to it . I never said no one can read anything mounted in /mnt /media

HAL basically runs at extended priveleges (root level priveleges). To get those priveleges HAL needs to be started as root ... HAL is like the admin allowing you to mount drives thats all.
 
Old 04-24-2008, 10:33 PM   #8
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
in the wiki , shouldn't it be fmask=113 ? Only then did I get rw-rw-r-- for files...
 
Old 04-24-2008, 11:13 PM   #9
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by duryodhan View Post
in the wiki , shouldn't it be fmask=113 ? Only then did I get rw-rw-r-- for files...
Yep - good catch. Fixed on the page; thanks!
 
Old 04-25-2008, 05:42 AM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
@Stoker: are you telling us that you plug a flash drive in, and you see it auto-mounted root-root?
 
Old 04-25-2008, 11:50 PM   #11
Stroker
Member
 
Registered: Dec 2006
Location: The Nature Coast
Distribution: Slackware 01001101
Posts: 83

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by Simon Bridge View Post
@Stoker: are you telling us that you plug a flash drive in, and you see it auto-mounted root-root?
No, I'm not using HAL (manual mounting).

The problem was my ignorance of file permissions and vfat. rworkman nailed it.

Thank you very much Mr. Workman (and all the other replies too). I have much to learn, but I'm getting there.
 
  


Reply

Tags
media, mnt



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
root can access a partition and see owners/groups/perms, user gets question marks lurko Debian 2 10-05-2006 11:30 AM
Can only read /mnt/win (ntfs) as root mpn Slackware 7 12-15-2004 09:21 PM
non-root accessing /mnt/win is denied! muyu Linux - Software 2 03-21-2004 12:38 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
ppp as non root w/o changing perms (slackware) xmnemonic Linux - Networking 0 08-02-2003 01:03 AM

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

All times are GMT -5. The time now is 10:15 AM.

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