'Root is full' problem [solved]

W Scott Lockwood III vladinator at gmail.com
Mon Jul 6 16:16:48 UTC 2015


On 7/6/2015 11:11 AM, R Kimber wrote:
> Yes, thanks.  I think I will have to write a cron job.
>
> One problem I have now is that the two USB disks are mounted with different
> permissions.  I've abandoned mounting them with fstab, so they are now
> mounted automatically in/media/<user>/  but the new disk is mounted with
> root as owner and group and I can't write to it (create folders etc).  The
> old disk however, is owned by me (group is users).  Why should they be
> different? And how do I make it so that they are both always mounted so
> that I can write to them?
>
> - Richard.
You took them out of /etc/fstab? Why? I'd assign them a label, and mount 
them via LABEL= in /etc/fstab. That will give you all the control you 
want. It will ensure that the right disk is always mounted at the right 
point, and you can set the permissions there to whatever you want.

You could also make the cron job one belonging to root. Enter the job in 
roots crontab via `sudo crontab -u root -e` or similar. Then it will 
always run as root. While I try not to do anything as root I don't have 
to, moving files around and performing backups can be a good case for 
using it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150706/5873e523/attachment.html>


More information about the ubuntu-users mailing list