LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-08-2010, 01:00 AM   #1
wingevil
Member
 
Registered: Oct 2008
Distribution: slack32-13
Posts: 147

Rep: Reputation: 19
different mounts of same ext hd


On my same box are two slackware-installations: one slackware64-13.1 and one slackware32-13.1.

There is an ext Hitachi-hd plugged on my box. With slack64 the ext hd has the uid of the normal user, so I can copy files onto it as user. With slack32 the ext hd has the uid of root, so only root can copy files onto it.

The mounting is "on the fly" with power on/off of the ext hd and NOT set in fstab. How can I change the "automatic" mount-defaults in slack32, that the uid is set to normal user instead of root?
 
Old 08-08-2010, 02:14 AM   #2
AppDeb
LQ Newbie
 
Registered: Aug 2010
Posts: 10

Rep: Reputation: 0
What file system does the external-HD use?

What desktop environment do you use? So we can see what does the automatic mount.
 
Old 08-08-2010, 02:37 AM   #3
wingevil
Member
 
Registered: Oct 2008
Distribution: slack32-13
Posts: 147

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by AppDeb View Post
What file system does the external-HD use?

What desktop environment do you use? So we can see what does the automatic mount.
a) NTFS
b) fluxbox
 
Old 08-08-2010, 03:36 AM   #4
AppDeb
LQ Newbie
 
Registered: Aug 2010
Posts: 10

Rep: Reputation: 0
I think that the (auto) ntfs-3g mounts are always done with uid=0 (root). The option "allow_other" is what makes them available to users.

type "mount" in the slackware installation that has the problem. Do you see "allow_other" in the ntfs-3g mounts?
 
Old 08-08-2010, 03:54 AM   #5
wingevil
Member
 
Registered: Oct 2008
Distribution: slack32-13
Posts: 147

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by AppDeb View Post
I think that the (auto) ntfs-3g mounts are always done with uid=0 (root). The option "allow_other" is what makes them available to users.

type "mount" in the slackware installation that has the problem. Do you see "allow_other" in the ntfs-3g mounts?
slackware 32:

/dev/sdb1 on /media/HITACHI type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)


slackware64

/dev/sdc1 on /media/HITACHI type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)


but in slack64 the owner is the user and in slack32 the owner is root!

 
Old 08-09-2010, 12:50 AM   #6
AppDeb
LQ Newbie
 
Registered: Aug 2010
Posts: 10

Rep: Reputation: 0
The owner should be uid=gid=0=root always, since you don't do the mounting.

Can you also post "cat /proc/mounts" from both systems?
 
Old 08-09-2010, 04:53 AM   #7
wingevil
Member
 
Registered: Oct 2008
Distribution: slack32-13
Posts: 147

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by AppDeb View Post
The owner should be uid=gid=0=root always, since you don't do the mounting.

Can you also post "cat /proc/mounts" from both systems?
from slack32:

Code:
rootfs / rootfs rw 0 0
/dev/root / ext4 rw,relatime,barrier=1,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1682488k,nr_inodes=215675,mode=755 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
usbfs /proc/bus/usb usbfs rw,relatime 0 0
/dev/sda12 /home ext4 rw,relatime,barrier=1,data=ordered 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
nfsd /proc/fs/nfs nfsd rw,relatime 0 0
/dev/sdb1 /media/HITACHI fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0
from slack64

Code:
rootfs / rootfs rw 0 0
/dev/root / ext4 rw,relatime,barrier=1,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1859020k,nr_inodes=464755,mode=755 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
usbfs /proc/bus/usb usbfs rw,relatime 0 0
/dev/sda13 /home ext4 rw,relatime,barrier=1,data=ordered 0 0
/dev/sda14 /mnt/wolvixdata ext3 rw,relatime,errors=continue,data=ordered 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
nfsd /proc/fs/nfs nfsd rw,relatime 0 0
/dev/sdb1 /media/HITACHI fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0
 
Old 08-09-2010, 05:17 AM   #8
AppDeb
LQ Newbie
 
Registered: Aug 2010
Posts: 10

Rep: Reputation: 0
The mounts are identical, so the problem is somewhere else. Makes sure that both users (32 + 64) are in the same groups.

Also make sure that when you have the driver unmounted (or not connected anyway), the directory /media/HITACHI does not exist. Delete it if it exists.
 
Old 08-09-2010, 09:26 AM   #9
wingevil
Member
 
Registered: Oct 2008
Distribution: slack32-13
Posts: 147

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by AppDeb View Post
The mounts are identical, so the problem is somewhere else. Makes sure that both users (32 + 64) are in the same groups.
Have checked this, both users are in the same groups (respectively in their environments)

Also make sure that when you have the driver unmounted (or not connected anyway), the directory /media/HITACHI does not exist. Delete it if it exists.[/QUOTE]

Have checked this, not necessary to delete /media/HITACHI because it is not there. In both environments it will be created with the first access via pcmanfm.

This is absolutely weired!
 
  


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
ext. usb HDD mounts read only for non root accounts logname Linux - Hardware 14 02-27-2006 04:17 PM
which ext should i use cchanana Linux - Newbie 1 01-14-2005 04:41 AM
Filesystems: ext 2, ext 3, reiserfs. Which one? r3dhatter Linux - Newbie 12 07-15-2004 12:53 AM
ext floppies dwessell Linux - Newbie 2 05-20-2004 09:10 PM
ext 3 error kinasz Linux - Software 7 03-31-2004 05:50 AM

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

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