additional hard drive - su can only write

Hello…

I have a hard drive setup:
http://picpaste.com/634aed03658d4e37ee7d819c7b2f4df0.png

detail:
http://picpaste.com/584294509255193d4a0b4052e5fc71ce.png

I would like sdb2 (/backup) to be used for an expanded owncloud setup.
However I can only write as root to that drive ( ie when copying and pasting files)

I have to assume I borked fstab, but since I never mess with I am unsure what I am doing and need expert advice:
here is a copy of what it currently is:

/dev/disk/by-id/ata-ST3000DM001-1CH166_Z1F3ZH4L-part1 swap swap defaults 0 0
/dev/disk/by-id/ata-KINGSTON_SV300S37A120G_50026B723B0177FC-part1 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-ST3000DM001-1CH166_Z1F3ZH4L-part2 /backup ext4 acl,user
/dev/disk/by-id/ata-KINGSTON_SV300S37A120G_50026B723B0177FC-part2 /home ext4 acl,user_xattr 1 2

I am pretty sure my problem is simple, not sure how to fix though…

Thank you for your time
qu1nn


# chmod 1777 /backup

should allow anybody to write.

I would recommend that you add “noexec” to the fstab options, if this is only for backups. That prevents programs from being run directly from that file system.

And of course that advice is poerfectly vallid. As setting all permissions to any dirctory/file will make it readable, writebal, executable by all the users. But those permission are not invented for nothing. Thus understanding them and apply them correctly may be a good idea.

Agreed.

He only asked how. He didn’t ask if it was a good idea.

If it were my system, I would instead create some subdirectories with more permissive writing.

I know that you know. It is allways difficult to give detailed advice on such a theme because the word “backup” does not explain much. Is it a backup the system manager makes, will the users maintain their own backups there, etc.

The only thing I wanted to stress to the OP the beside following your advice, it would be better to think over what he wants and then how to achieve that.

First off thank you for your quick responses, it is appreciated.

I am a home user putzing around with the using owncloud to get away from samba file sharing. This would also allow me to bail from dropbox and take control of my data (killing 2 birds with one stone)…
The files would be accessible on all of the linux boxes via webdavs in dolphin (or the android app for all of the other devices used by the family).

I was planning on using dev/sdb2 for the following:
(1) a subfolder called /dev/sdb2/backup/share for expanding the local external storage in owncloud.

maybe I am naive but wouldn’t owncloud generally control permissions?

(2) a subfolder called /dev/sdb2/backup/back_in_time/ for using an application called back in time to act as an automated backup of important files on that computer.

again, thank you for your time
Qu1nn…

You can not use it like that. /dev/sdb2 et al are device special files, notdirtors where you can cre file/sub-dirctories. These device special files represent the file systems. File systems must be mounted somewhere in your directory tree to mmk the directriees/files n them aivalable.

Maybe this can help you: http://en.opensuse.org/SDB%3ABasics_of_partitions,_filesystems,_mount_points

maybe there is confusion in my setup:
http://picpaste.com/584294509255193d4a0b4052e5fc71ce.png

sdb2 is formatted as ext4… thus just file space…

I have already did the chmod 1777 > created the directories, dumped some files

Seems to be working fine.
I can log into owncloud and see the files created …
I can also use dolphin / webdavs to see the files

unless I am missing something…
I have some more testing to do though… but that will have to be tomorrow…

qu1nn

I’m not familiar with owncloud, but unless it’s doing something really weird, your disk /dev/sdb2 is mounted as the DIRECTORY ‘/backup’, just as /dev/sda1 is mounted as ‘/’ (the root directory), /dev/sda2 is mounted as ‘/home’, and so on. So you could make subdirectories called ‘share’ &c under that…