You are not logged in.
╔═[hatten@prinplup]═[19:16:28 Sat Dec 26]═[~]
╚═══[$]> mkdir Xfs
╔═[hatten@prinplup]═[19:16:32 Sat Dec 26]═[~]
╚═══[$]> ls -l
total 44
drwxr-xr-x 4 hatten hatten 4096 Dec 24 20:02 backup
drwxr-xr-x 3 hatten hatten 4096 Dec 10 19:48 Code
drwxr-xr-x 2 hatten hatten 4096 Dec 19 21:24 Data
drwxr-xr-x 4 hatten hatten 4096 Dec 26 18:12 diablo
drwxr-xr-x 2 hatten hatten 4096 Dec 25 12:06 Downloads
drwxr-xr-x 3 hatten hatten 4096 Dec 19 19:56 hax
drwxr-xr-x 8 hatten hatten 4096 Dec 25 12:06 patches
drwxr-xr-x 2 hatten hatten 4096 Dec 26 11:13 test
drwxr-xr-x 6 hatten hatten 4096 Dec 24 19:13 Tmp
drwxr-xr-x 5 hatten hatten 4096 Dec 22 19:51 Var
drwxr-xr-x 2 hatten hatten 4096 Dec 26 19:16 Xfs
╔═[hatten@prinplup]═[19:16:36 Sat Dec 26]═[~]
╚═══[$]> cat /etc/fstab
#
# /etc/fstab: static file system information
#
#<file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
# Media drives - change mount point before using
#/dev/cdrom /media/cd auto ro,users,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,users,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0
# Filesystem mounts
/dev/sda2 / ext4 defaults 0 1
/dev/sda3 swap swap defaults 0 0
# remote folder
sshfs#hatten@192.168.1.4:/data/hatten /home/hatten/Data fuse users,noauto 0 0
# /tmp in ram
none /tmp tmpfs nodev,nosuid,exec,nodiratime,size=512m 0 0
# Mass storage devices
/dev/sdb1 /home/hatten/Usb vfat users,exec,noauto 0 0
/dev/sdb1 /home/hatten/Xfs xfs users,exec,noauto 0 0
╔═[hatten@prinplup]═[19:16:49 Sat Dec 26]═[~]
╚═══[$]> mount Xfs/
╔═[hatten@prinplup]═[19:16:56 Sat Dec 26]═[~]
╚═══[$]> ls -l
total 40
drwxr-xr-x 4 hatten hatten 4096 Dec 24 20:02 backup
drwxr-xr-x 3 hatten hatten 4096 Dec 10 19:48 Code
drwxr-xr-x 2 hatten hatten 4096 Dec 19 21:24 Data
drwxr-xr-x 4 hatten hatten 4096 Dec 26 18:12 diablo
drwxr-xr-x 2 hatten hatten 4096 Dec 25 12:06 Downloads
drwxr-xr-x 3 hatten hatten 4096 Dec 19 19:56 hax
drwxr-xr-x 8 hatten hatten 4096 Dec 25 12:06 patches
drwxr-xr-x 2 hatten hatten 4096 Dec 26 11:13 test
drwxr-xr-x 6 hatten hatten 4096 Dec 24 19:13 Tmp
drwxr-xr-x 5 hatten hatten 4096 Dec 22 19:51 Var
drwxr-xr-x 2 root root 17 Dec 26 19:13 Xfs
╔═[hatten@prinplup]═[19:16:58 Sat Dec 26]═[~]
╚═══[$]> touch Xfs/test
touch: cannot touch `Xfs/test': Permission denied
╔═[hatten@prinplup]═[19:17:03 Sat Dec 26]═[~]
╚═══[$]> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 25G 12G 12G 51% /
none 1.8G 148K 1.8G 1% /dev
none 1.8G 0 1.8G 0% /dev/shm
none 512M 12K 512M 1% /tmp
/dev/sdb1 1.9T 4.2M 1.9T 1% /home/hatten/Xfs
As the topic says, when i mount the external hdd the ownership goes to root for some reason. Any reason why?
Offline
# Mass storage devices
/dev/sdb1 /home/hatten/Usb vfat users,exec,noauto 0 0
/dev/sdb1 /home/hatten/Xfs xfs users,exec,noauto 0 0
I can't understand those lines. What Filesystem are you actually using on your external HDD?
If it is vfat, that's normal behavior because it doesn't support modes and persmissions of files so it emulates owner - user who mounts it (don't know why root in your case, though) and permissions - 644.
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline
It has XFS, the reason i got two lines is because i use them to mount different devices. When i plug in a usb stick with vfat, i use mount ~/Usb. When i mount my hdd i use mount ~/Xfs. I could exchange the last /dev/sdb1 to a uuid, but this was easier, and it works.
Offline
Maybe adding ck-launch-session in the xinitrc? Also off topic. how to you get a font to wrap to the bottom like in your terminal. i have a two line terminal but i can't get the fonts that you do... sorry for asking here! lol
Linux ArchLinux 3.2.8-1-ARCH
#1 SMP PREEMPT Mon Feb 27 21:51:46 CET 2012 x86_64 AMD FX(tm)-8120 Eight-Core Processor AuthenticAMD GNU/Linux
8192MB DDR3 1300MHz | Asus m5a97 | GeForce GTX 550 Ti | 120 GB SSD
Offline
My understanding is that the mount point is replaced by the root of the mounted file system. If the latter is owned by root:root, then that will be the ownership of the mount point.
I could see the same behavior with a standard ext2 partition (mount point was owned by root after mounting regardless of previous ownership), and ran a small experiment to confirm (mount; chown ... /mount/point; umount; mount). It worked as expected.
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
pmount is another option here.
Offline
How do I chown the root?
@jusebox, i have the default font, no clue what it is called cause I've no clue how to change it.
Offline
How do I chown the root?
Become root; mount the partition /some/where; chown hatten:hatten /some/where; umount /some/where
Next time you mount it at /any/where; /any/where will be owned by hatten:hatten.
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
That works, thanks!
Last edited by hatten (2010-01-08 09:49:35)
Offline