I have just built my 2nd Fedora machine. The first is currently running Fedora 16 acting as a mail and web server for my personal domain whilst my 2nd and new Fedora 18 machine will eventually act as a combined FTP / VPN server. As this is a new build I decided to use SSDs raided for the installation with the data to be stored on secondary mechanical 3.5" drives. Due to the "supposed" write limitations / maximum write operations associated with SSDs I have decided to move the following to the mechanical drives:
/var/log
/tmp
/lib
/run
So far I have created a symbolic link for the "/var/log" directory using ln -s /run/media/~/mount_location_on_drive/log /var/log. The issue that I now have is that if as a restricted user I type "ls -l /var/log" it simply lists the symbolic link, and if I type "ls -l /var/log/*" I receive a permission denied message. As root "ls -l /var/log" also only lists the symbolic link whereas "ls -l /var/log/*" as root lists the full contents. Previously regardless of whether or not I was a restricted / root user "ls -l /var/log" listed the full contents and I could "cd" into the directory.
In view of the above issue any recommendations as to what would be the best method of redirecting the /tmp to a new location on a separate drive bearing in mind that /tmp is by default already on a filesystem tmps as per:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 1032868 52 1032816 1% /tmp
Is a symbolic link the way to go? I don't want to go the symbolic route if it may potentially cause every program running on my system issues writing to the new /tmp directory. By default my /etc/fstab does not contain any entries for the tmp mount point / filesystem so it's not just a simple case of redirecting the pointer....
Any assistance will be greatly appreciated. Thanks for reading this guys.
Regards, Rawcous! :C
/var/log
/tmp
/lib
/run
So far I have created a symbolic link for the "/var/log" directory using ln -s /run/media/~/mount_location_on_drive/log /var/log. The issue that I now have is that if as a restricted user I type "ls -l /var/log" it simply lists the symbolic link, and if I type "ls -l /var/log/*" I receive a permission denied message. As root "ls -l /var/log" also only lists the symbolic link whereas "ls -l /var/log/*" as root lists the full contents. Previously regardless of whether or not I was a restricted / root user "ls -l /var/log" listed the full contents and I could "cd" into the directory.
In view of the above issue any recommendations as to what would be the best method of redirecting the /tmp to a new location on a separate drive bearing in mind that /tmp is by default already on a filesystem tmps as per:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 1032868 52 1032816 1% /tmp
Is a symbolic link the way to go? I don't want to go the symbolic route if it may potentially cause every program running on my system issues writing to the new /tmp directory. By default my /etc/fstab does not contain any entries for the tmp mount point / filesystem so it's not just a simple case of redirecting the pointer....
Any assistance will be greatly appreciated. Thanks for reading this guys.
Regards, Rawcous! :C