Sure, thanks v-much:
sudo blkid
/dev/sda1: UUID="cd9649e6-6d69-4624-8199-9089ac97241b" TYPE="ext4"
/dev/sda2: UUID="Z3LW3u-U4qE-IKCT-XHpb-h0iP-y1vw-BhduP3" TYPE="LVM2_member"
/dev/sdb5: LABEL="WD-GP-T2-1" UUID="42ea0928-74e1-4c49-ada8-452d0dda3ea2" TYPE="ext4"
/dev/sdc5: LABEL="WD-GP-2T-2" UUID="30e95e65-2d7d-4101-90d1-993423380444" TYPE="ext4"
/dev/sdd5: LABEL="WD-GP-T2-3" UUID="b4bd72a2-d31d-4c10-af4c-9c927c7ca060" TYPE="ext4"
/dev/mapper/vg_padme-lv_root: UUID="b38b0f25-027a-44e6-8ebc-c1730b313ec3" TYPE="ext4"
/dev/mapper/vg_padme-lv_swap: UUID="0272db47-1d75-4c93-b73d-622f14c221d2" TYPE="swap"
/dev/sde5: LABEL="" UUID="D61BC54AB757A8E8" TYPE="ntfs"
ls -la /mnt/samba/movies
total 12
drwxr-xr-x 1 root root 0 2010-12-16 18:14 .
drwxr-xr-x 4 root root 4096 2010-12-16 07:48 ..
-rwxr-xr-x 1 root root 6148 2010-12-16 19:42 .DS_Store
drwxr-xr-x 1 root root 0 2010-12-16 09:26 DVD
drwxr-xr-x 1 root root 0 2010-12-16 20:00 HD
drwxr-xr-x 1 root root 0 2010-12-16 09:53 !Mov
drwxr-xr-x 1 root root 0 2010-12-15 16:33 Sci-Fi
drwxr-xr-x 1 root root 0 2010-12-15 18:21 Top Gear
drwxr-xr-x 1 root root 0 2010-12-15 03:13 TV Series
ls -la /var/hda/files/movies
total 32
drwxrwxr-x 8 ralf users 4096 2010-12-16 18:14 .
drwxr-xr-x 16 ralf users 4096 2010-12-16 09:04 ..
lrwxrwxrwx 1 root root 48 2010-12-13 01:11 .DS_Store -> /var/hda/files/drives/drive3/gh/Movies/.DS_Store
drwxrwxr-x 34 ralf users 4096 2010-12-16 09:26 DVD
drwxrwxr-x 9 ralf users 4096 2010-12-16 20:00 HD
drwxrwxr-x 5 ralf users 4096 2010-12-16 09:53 !Mov
drwxrwxr-x 3 ralf users 4096 2010-12-15 16:33 Sci-Fi
drwxrwxr-x 9 ralf users 4096 2010-12-15 18:21 Top Gear
drwxrwxr-x 13 ralf users 4096 2010-12-15 03:13 TV Series
touch /var/hda/files/movies/file1
--nothing --
rm /var/hda/files/movies/file1
--nothing --
touch /mnt/samba/movies/file2
touch: cannot touch `/mnt/samba/movies/file2': Permission denied
rm /mnt/samba/movies/file2
rm: cannot remove `/mnt/samba/movies/file2': No such file or directory
thanks again,
Ralf
How to move files amongst SHARES (Greyhole or not)
Re: How to move files amongst SHARES (Greyhole or not)
best,
Ralf
_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD
Ralf
_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD
Re: How to move files amongst SHARES (Greyhole or not)
The owner of your mounts is the problem (it's root, but should be ralf).
In your fstab, you specify uid=500,gid=100
That part should make the files owned by the user whose uid is 500, and by the group whose gid is 100.
Normally, that is the first user created, and the 'users' group.
Verify the numbers with this command:
If that gives uid=500 and gid=100, then you should be fine.
If it gives other numbers, use those in your fstab.
Try to re-mount the shares, as root:
Then check (ls -la) whose the owner of the files in /mnt/samba/movies.
It should be ralf instead of root.
In your fstab, you specify uid=500,gid=100
That part should make the files owned by the user whose uid is 500, and by the group whose gid is 100.
Normally, that is the first user created, and the 'users' group.
Verify the numbers with this command:
Code: Select all
id ralf
If it gives other numbers, use those in your fstab.
Try to re-mount the shares, as root:
(Do this if you changed fstab or not.)umount /mnt/samba/*; mount -a
Then check (ls -la) whose the owner of the files in /mnt/samba/movies.
It should be ralf instead of root.
- Guillaume Boudreau
Re: How to move files amongst SHARES (Greyhole or not)
id ralfThat part should make the files owned by the user whose uid is 500, and by the group whose gid is 100.
Normally, that is the first user created, and the 'users' group.
Verify the numbers with this command:
Code:
id ralf
If that gives uid=500 and gid=100, then you should be fine.
If it gives other numbers, use those in your fstab.
uid=500(ralf) gid=100(users) groups=100(users)
(looks ok?, so no change in fstab)
[root@padme ralf]# umount /mnt/samba/*; mount -aTry to re-mount the shares, as root:
Quote:
umount /mnt/samba/*; mount -a
(Do this if you changed fstab or not.)
mount: mount point 0 does not exist
mount: mount point 0 does not exist
[root@padme ralf]# ls -laThen check (ls -la) whose the owner of the files in /mnt/samba/movies.
It should be ralf instead of root.
ls: cannot access .gvfs: Permission denied
total 252
drwx------ 31 ralf ralf 4096 2010-12-16 09:03 .
drwxr-xr-x 4 root root 4096 2010-12-12 19:02 ..
-rw------- 1 ralf users 520 2010-12-16 20:44 .bash_history
-rw-r--r-- 1 ralf ralf 18 2009-09-16 18:15 .bash_logout
-rw-r--r-- 1 ralf ralf 176 2009-09-16 18:15 .bash_profile
-rw-r--r-- 1 ralf ralf 124 2009-09-16 18:15 .bashrc
drwxr-xr-x 3 ralf ralf 4096 2010-12-13 00:09 .cache
drwxr-xr-x 5 ralf ralf 4096 2010-12-13 00:09 .config
drwx------ 3 ralf ralf 4096 2010-12-12 18:17 .dbus
drwxr-xr-x 3 ralf ralf 4096 2010-12-12 23:44 Desktop
-rw-r--r-- 1 ralf users 1548 2010-12-13 00:09 Disk Mounts
-rw-r--r-- 1 ralf users 42 2010-12-15 12:00 .dmrc
drwxr-xr-x 2 ralf ralf 4096 2010-12-12 18:17 Documents
drwxr-xr-x 2 ralf ralf 4096 2010-12-12 18:17 Downloads
-rw------- 1 ralf ralf 16 2010-12-12 18:17 .esd_auth
drwxr-xr-x 3 ralf users 4096 2010-12-12 22:10 .evolution
drwxr-xr-x 2 ralf users 4096 2010-12-14 21:02 .fontconfig
drwx------ 4 ralf ralf 4096 2010-12-15 12:00 .gconf
drwx------ 2 ralf ralf 4096 2010-12-16 20:44 .gconfd
drwxr-xr-x 7 ralf ralf 4096 2010-12-15 11:57 .gnome2
drwx------ 2 ralf ralf 4096 2010-12-12 18:17 .gnome2_private
drwxrwxr-x 3 ralf ralf 4096 2010-12-12 18:17 .gnote
drwx------ 2 ralf ralf 4096 2010-12-16 09:15 .gnupg
-rw-r--r-- 1 root root 635 2010-12-15 00:38 greyhole.dump.sqle
drwxrwxr-x 2 ralf ralf 4096 2010-12-12 18:17 .gstreamer-0.10
-rw-r--r-- 1 ralf users 132 2010-12-15 12:00 .gtk-bookmarks
d????????? ? ? ? ? ? .gvfs
-rw------- 1 ralf ralf 6200 2010-12-15 12:00 .ICEauthority
drwx------ 2 ralf ralf 4096 2010-12-14 15:20 .icedteaplugin
-rw-r--r-- 1 ralf users 626 2010-12-15 12:00 .imsettings.log
drwxr-xr-x 3 ralf ralf 4096 2010-12-12 18:17 .local
drwxr-xr-x 5 ralf ralf 4096 2010-12-12 18:39 .mozilla
drwxr-xr-x 2 ralf ralf 4096 2010-12-12 18:17 Music (no Movies!)
drwxr-xr-x 2 ralf ralf 4096 2010-12-12 18:17 .nautilus
drwxrwxr-x 3 ralf ralf 4096 2010-12-12 19:08 .netx
drwxr-xr-x 2 ralf ralf 4096 2010-12-12 18:17 Pictures
drwxr-xr-x 2 ralf ralf 4096 2010-12-12 18:17 Public
drwx------ 2 ralf users 4096 2010-12-12 18:17 .pulse
-rw------- 1 ralf ralf 256 2010-12-12 18:17 .pulse-cookie
-rw------- 1 ralf users 5557 2010-12-16 09:03 .recently-used.xbel
-rw-r--r-- 1 ralf users 45 2010-12-16 07:47 .smb_credentials
-rw-r--r-- 1 ralf users 45 2010-12-13 11:20 .smb_credentials~
drwx------ 2 ralf ralf 4096 2010-12-12 18:17 .ssh
drwxr-xr-x 2 ralf ralf 4096 2010-12-12 18:17 Templates
drwx------ 4 ralf users 4096 2010-12-13 02:37 .thumbnails
drwxr-xr-x 2 ralf ralf 4096 2010-12-12 18:17 Videos
-rw------- 1 ralf users 21465 2010-12-16 20:48 .xsession-errors
-rw------- 1 ralf users 32300 2010-12-15 11:58 .xsession-errors.old
Many thanks for your guidance.
Ralf
best,
Ralf
_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD
Ralf
_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD
Re: How to move files amongst SHARES (Greyhole or not)
Code: Select all
ls -la /mnt/samba/movies
- Guillaume Boudreau
Re: How to move files amongst SHARES (Greyhole or not)
[root@padme ralf]# ls -la /mnt/samba/movies
total 8
drwxr-xr-x 2 root root 4096 2010-12-13 11:49 .
drwxr-xr-x 4 root root 4096 2010-12-16 07:48 ..
[root@padme ralf]# ls -la /mnt/samba/music
total 8
drwxr-xr-x 2 root root 4096 2010-12-16 07:48 .
drwxr-xr-x 4 root root 4096 2010-12-16 07:48 ..
[root@padme ralf]#
Ok so it looks like those shares are owned by 'root'.
How do I change them to 'ralf'
kind regards,
Ralf
total 8
drwxr-xr-x 2 root root 4096 2010-12-13 11:49 .
drwxr-xr-x 4 root root 4096 2010-12-16 07:48 ..
[root@padme ralf]# ls -la /mnt/samba/music
total 8
drwxr-xr-x 2 root root 4096 2010-12-16 07:48 .
drwxr-xr-x 4 root root 4096 2010-12-16 07:48 ..
[root@padme ralf]#
Ok so it looks like those shares are owned by 'root'.
How do I change them to 'ralf'
kind regards,
Ralf
best,
Ralf
_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD
Ralf
_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD
Re: How to move files amongst SHARES (Greyhole or not)
You don't. Those are the mount points; there is nothing mounted there.
mount -a isn't enough to mount the local shares. You need to do this:
mount -a isn't enough to mount the local shares. You need to do this:
Code: Select all
/bin/sed -ie 's/#smb#//g' /etc/fstab
/bin/mount -a
/bin/sed -ie 's@//127.0.0.1@#smb#//127.0.0.1@g' /etc/fstab
- Guillaume Boudreau
Re: How to move files amongst SHARES (Greyhole or not)
I put that in /etc/rc.local as per wiki : http://wiki.amahi.org/index.php/Mount_Shares_LocallyYou don't. Those are the mount points; there is nothing mounted there.
mount -a isn't enough to mount the local shares. You need to do this:
Code:
/bin/sed -ie 's/#smb#//g' /etc/fstab
/bin/mount -a
/bin/sed -ie 's@//127.0.0.1@#smb#//127.0.0.1@g' /etc/fstab
This is my /etc/rc.local file:
r#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
# Mount own Samba shares locally
/bin/sed -ie 's/#smb#//g' /etc/fstab
/bin/mount -a
/bin/sed -ie 's@//127.0.0.1@#smb#//127.0.0.1@g' /etc/fstab
Do I need to run manually?
I just rebooted the server, still can't copy to the shares.
Many thanks
Ralf
best,
Ralf
_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD
Ralf
_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD
Re: How to move files amongst SHARES (Greyhole or not)
I suggest you take this to the live chat. This back and forth in unproductive, and could take a while to result in a solution.
http://talk.amahi.org
Just say that you mounted shares locally, and the files ownership are wrong.
Somebody with enough Linux knowledge should be able to help.
Good luck.
http://talk.amahi.org
Just say that you mounted shares locally, and the files ownership are wrong.
Somebody with enough Linux knowledge should be able to help.
Good luck.
- Guillaume Boudreau
Re: How to move files amongst SHARES (Greyhole or not)
Hi Guillaume,
Many thanks, I went to live chat support and got some suggestions but ultimately was prompted to come back to you.
I'd much appreciate your further assistance.
It looks I'm much closer now to being able to mount the shares as I now seem to be the owner:
and now I when I access the shares: like /mnt/samba/movies/ there is nothing inside the folder, although I CAN copy items into it and delete.
when mounting I'm getting this:
Do you know what is happening?
Many thanks
Ralf
PS
Here is my fstab:
Many thanks, I went to live chat support and got some suggestions but ultimately was prompted to come back to you.
I'd much appreciate your further assistance.
It looks I'm much closer now to being able to mount the shares as I now seem to be the owner:
before it showed 'root', not 'ralf'[root@padme ralf]# ls -la /mnt/samba/movies
total 8
drwxr-xr-x 2 ralf users 4096 2010-12-17 09:25 .
drwxr-xr-x 5 ralf ralf 4096 2010-12-17 12:03 ..
[root@padme ralf]# ls -la /mnt/samba/music
total 8
drwxr-xr-x 2 ralf users 4096 2010-12-17 09:25 .
drwxr-xr-x 5 ralf ralf 4096 2010-12-17 12:03 ..
and now I when I access the shares: like /mnt/samba/movies/ there is nothing inside the folder, although I CAN copy items into it and delete.
when mounting I'm getting this:
and now I when I access the shares: like /mnt/samba/movies/ I CAN see all my files and folders, but I can NOT copy items into it these. Also the folders have a little pad lock icon.[root@padme ralf]# /bin/sed -ie 's/#smb#//g' /etc/fstab
[root@padme ralf]# /bin/mount -a
Password:
mount: mount point 0 does not exist
Password:
mount: mount point 0 does not exist
Password:
mount: mount point 0 does not exist
[root@padme ralf]# /bin/sed -ie 's@//127.0.0.1@#smb#//127.0.0.1@g' /etc/fstab
[root@padme ralf]#
Do you know what is happening?
Many thanks
Ralf
PS
Here is my fstab:
[ralf@padme ~]$ cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sun Dec 12 17:52:24 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_padme-lv_root / ext4 defaults 1 1
UUID=cd9649e6-6d69-4624-8199-9089ac97241b /boot ext4 defaults 1 2
/dev/mapper/vg_padme-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=42ea0928-74e1-4c49-ada8-452d0dda3ea2 /var/hda/files/drives/drive1 ext4 defaults 1 2
UUID=30e95e65-2d7d-4101-90d1-993423380444 /var/hda/files/drives/drive2 ext4 defaults 1 2
UUID=b4bd72a2-d31d-4c10-af4c-9c927c7ca060 /var/hda/files/drives/drive3 ext4 defaults 1 2
#smb#//127.0.0.1/movies /mnt/samba/movies cifs
credentials=/home/ralf/.smb_credentials,uid=500,gid=100,file_mode=0660,dir_mode=0770,hard,_netdev 0 0
#smb#//127.0.0.1/music /mnt/samba/music cifs
credentials=/home/ralf/.smb_credentials,uid=500,gid=100,file_mode=0660,dir_mode=0770,hard,_netdev 0 0
#smb#//127.0.0.1/ralf /mnt/samba/ralf cifs
credentials=/home/ralf/.smb_credentials,uid=500,gid=100,file_mode=0660,dir_mode=0770,hard,_netdev 0 0
best,
Ralf
_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD
Ralf
_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD
Re: How to move files amongst SHARES (Greyhole or not)
That the owner of your unmounted shares was root before, and is now ralf, will not help you at all.
You want to copy files IN your shares, so do to that, they need to be MOUNTED, and the owner of the MOUNTED dirs/files needs to be ralf.
Copying files there when they are empty means you are just copying files into the system partition, not the shares, since the shares are NOT mounted.
The errors you get when you mount -a is the key to you problem.
All 3 lines for your shares are on two different lines, effectively making 'mount' ignore the second line, that contains the correct owner & permissions for your share.
Just put back the lines that start with credentials=... at the end of the preceding lines, and you'll be fine.
umount /mnt/samba/*
Then re-mount it by executing the 3 commands found in your rc.local (or rebooting).
You want to copy files IN your shares, so do to that, they need to be MOUNTED, and the owner of the MOUNTED dirs/files needs to be ralf.
Copying files there when they are empty means you are just copying files into the system partition, not the shares, since the shares are NOT mounted.
The errors you get when you mount -a is the key to you problem.
All 3 lines for your shares are on two different lines, effectively making 'mount' ignore the second line, that contains the correct owner & permissions for your share.
Just put back the lines that start with credentials=... at the end of the preceding lines, and you'll be fine.
umount /mnt/samba/*
Then re-mount it by executing the 3 commands found in your rc.local (or rebooting).
- Guillaume Boudreau
Who is online
Users browsing this forum: No registered users and 22 guests