You are not logged in.
Hi
I have an ext3 formated separate drive for bak.
And i can't create any files on that because it has root permissions.
On Arch generated entries in fstab do i have permissions as regular user
but i have the same line defaults and sdc1 has only root permissions.
Way does it not work?
My fstab:
/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0
/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/sda1 /boot ext2 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext3 defaults 0 1
/dev/sda4 /home ext3 defaults 0 1
#win_xp
/dev/sdb1 /media/sdb1 ntfs ro,user,fmask=0133,dmask=0022,uid=1000,gid=1000 0 0
#samsung
/dev/sdd1 /media/sdd1 ntfs ro,user,fmask=0133,dmask=0022,uid=1000,gid=1000 0 0
# seagate ext3
/dev/sdc1 /media/sdc1 ext3 defaults,user 0 1
#usb
/dev/sde1 /mnt/usb1 vfat noauto,rw,user,umask=0000 0 0
/dev/sdf1 /mnt/usb2 vfat noauto,rw,user,umask=0000 0 0
Last edited by fernux (2007-10-01 00:35:41)
Offline
On that second HD, as root, create a directory (say you call it backups) and then chown yourid:users backups
From there on, even though root owns the HD your user owns that directory and you just put your files in there.
You can even make a symlink to it in your home directory pointing to your backups directory and that way it is always one click away.
As a matter of fact that's how I have mine set up
Hope this helps.
R
Offline
To take ownership is a god solution, and now i remember that command chown.
But i want the hole drive to be accessed as a regular user,
and i don't understand way it don't.
Tanks for your replay
/Mikael
Offline
try
# chown -R <dir> <user>
# chgrp -R users <dir>
Offline
I think that by default Unix systems mount all HDDs owned by root, but you can alter that in your fstab.
You can for example set your fstab like this:
/dev/sdb /mnt/backup ext3 rw,user=yourid, auto 0 0
so that you own the disk and have rw permissions.
I have not done such thing in years now but if my memory does not fail me that should work for you.
R
Offline
I have solved it now::D
As root in terminal:
chown -R mikael /media/sdc1
This means that user mikael get ownership of hole partition (file) sdc1
Tanks ralvez for helping me solving this
Last edited by fernux (2007-10-01 00:44:49)
Offline
@fernux
Glad to be of help.
R
Offline