You are not logged in.

#1 2009-02-02 22:47:31

benji.ijneb
Member
Registered: 2008-12-13
Posts: 84

File permissions on network drive - very confusing...

i have a networked drive mounted for backups on my computer at /media/iomega-01b44c
whenever i copy files onto it, I receive an error saying;

Could not change permissions for
/media/iomega-01b44c/path/to/copied/file

Whenever using backup software such as luckybackup and synkron, all the selected directories are copied over, but none of the files contained within them. Luckybackup does not produce any errors during the backup, but synkron does. these problems persist even when these applications are run as root, and with cmd-line apps such as rsync and rdiff-backup.

the drive is mounted in my fstab as follows:

#
# /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

/dev/cdrom /media/cdrom   auto    ro,user,noauto,unhide   0      0
UUID=025f8545-3296-45d7-886d-d512ea041f4f swap swap defaults 0 0
UUID=5e8a5e68-2031-46be-9f6d-5a311b96df67 / ext2 defaults 0 1
UUID=e91ed434-6955-4e1e-b995-50f9515667ee /boot ext2 defaults 0 1
UUID=edf662d8-a882-48da-a579-e7bfab59abae /home ext2 defaults 0 1
//10.0.0.9/public /media/iomega-01b44c cifs credentials=/home/benji/.smbcredentials 0 0

however, it refuses to mount on boot, returning errors about the network being unreachable, despite "netfs" coming after "samba" and "networkmanager" in rc.conf (it's the last one before "kdm")

the file permissions of the directory I am attempting to save my backups within are:

drwxrwxrwx 4 254 254 0 2009-02-02 21:59

and within that directory, the permissions of the "flyback2" folder are:

drwxr-xr-x 6 254 254 0 2008-12-30 15:14

I cannot delete this folder, even when using rm -r as root.

so. lots of problems! i appreciate that i'm asking for a lot here, so I appreciate any help that you can give me smile !

thanks in advance!

Offline

#2 2009-02-03 21:36:57

benji.ijneb
Member
Registered: 2008-12-13
Posts: 84

Re: File permissions on network drive - very confusing...

bump... i'm working on an HD that's making odd clicking noises - worried it might fail and it'd be great to have my data / pics  / documents easily backed up smile

so far i've tried adding the rw and noperm options to my fstab entry - still no change...

Offline

#3 2009-02-03 22:31:11

Envil
Member
Registered: 2008-11-18
Posts: 52

Re: File permissions on network drive - very confusing...

NetworkManager doesnt bring up Interfaces fast enough thats why the network is unreachable when you try to mount it i think.
I solved this by simply adding a mount /media/whatever in some gdm init script.

As for the permissions try adding "rw,dir_mode=0777,file_mode=0777" to your options in fstab.

Offline

#4 2009-02-05 18:47:01

benji.ijneb
Member
Registered: 2008-12-13
Posts: 84

Re: File permissions on network drive - very confusing...

thanks so much for your help, but adding dir mode and file mode to it doesn't appear to have changed anything - i'm still getting the same problems.

if it's not to difficult, could you explain to me how to do this gdm init script (i'm on kde, so i use kdm...)

thanks again!

Offline

#5 2009-02-05 20:38:50

infohigh
Member
From: Ottawa, Ontario, Canada
Registered: 2009-01-29
Posts: 6

Re: File permissions on network drive - very confusing...

hmmm, I'm worried about your clicking harddrive.... deffo make backups asap!!

I don't know anything about cifs, unfortunately. Are you sure your SMB credentials allow you to write files to that remote drive??

Offline

#6 2009-02-07 09:44:25

benji.ijneb
Member
Registered: 2008-12-13
Posts: 84

Re: File permissions on network drive - very confusing...

infohigh wrote:

hmmm, I'm worried about your clicking harddrive.... deffo make backups asap!!

I don't know anything about cifs, unfortunately. Are you sure your SMB credentials allow you to write files to that remote drive??

positive smile

i'll do a backup to a USB or something...

Offline

#7 2009-02-09 21:32:02

benji.ijneb
Member
Registered: 2008-12-13
Posts: 84

Re: File permissions on network drive - very confusing...

oddly, i can manage backups to a seperate folder on the iomega when using grsync. i'm now positive that there's some strange permssion problems, but i can't detect them...

i'm unable to edit the files that i've backed up (not too big a problem...) but i can delete them no problem. the files that i backup have the following permissions:

-rwxrw-rw- 1 benji 1000

which all looks fine and good, but when looking at their permissions in dolphin, all the sections are greyed out (owner, group and others) and it claims that

This file uses advanced permissions

veery odd...

thanks for all your help so far, all help is appreciated, thanks!

Offline

Board footer

Powered by FluxBB