我有一个运行 Ubuntu 10.10 的虚拟机。我正在使用 Netbeans 并将文件上传到虚拟机上的 ftp。我正在使用 vsftpd。
我遇到的问题是,文件夹的所有者/var/www
是用户apache
,以便 apache 服务器能够读取文件。到现在为止还挺好。
但是当我尝试从 ftp 用户上传文件时,我无法上传user1
。我知道问题是什么。我的问题是,如何为用户正确设置权限apache
并user1
能够写入/读取 /var/www 目录中的所有文件?
我有一个 256GB 的 SSD (Ubuntu/Win8) 和两个 1TB 的 RAID 1 驱动器。
问题是我最近刚刚在 RAID 1 中添加了另外两个 4TB 的驱动器,但它们在 Ubuntu 中没有被检测为一个驱动器,而是分开的。
我知道它有效,因为 Windows 检测到我的新 4TB RAID 1 就好了,这是通过我的主板 (fakeraid) 附带的其中一个 RAID 磁盘实用程序的屏幕截图。
另外这里是我的设置的 fdisk 信息:
Disk /dev/sda: 256.1 GB, 256060514304 bytes
255 heads, 63 sectors/track, 31130 cylinders, total 500118192 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0a7f44fd
Device Boot Start …
Run Code Online (Sandbox Code Playgroud) 我只是 RMA 了我的 Asus 280x DirectCU II 卡,因为它不会输出视频。
RMA 给我寄回了这张卡,它在运行 BF4 时有一些小瑕疵,所以我怀疑 GDDR5 RAM 坏了。这是测试,但我没有什么可以比较的。我不确定这些错误是否确实证明我应该退回这张卡。
MemtestCL 结果:
Test summary:
-----------------------------------------
50 iterations over 2048 MiB of memory on device Tahiti
Moving inversions (ones and zeros): 0 failed iterations
(0 total incorrect bits)
Memtest86 walking 8-bit: 0 failed iterations
(0 total incorrect bits)
True walking zeros (8-bit): 0 failed iterations
(0 total incorrect bits)
True walking ones (8-bit): 0 failed iterations
(0 total incorrect bits)
Moving inversions (random): 0 failed iterations …
Run Code Online (Sandbox Code Playgroud) 我有一个动态 WAN IP,所以如果它改变了我的 iptables 将不再适用。
这是我的工作发夹 nat,其中 xxxx 是我的 WAN IP
br0 - LAN
eth1 - WAN
-A PREROUTING -d x.x.x.x -p tcp --dport 80 -j DNAT --to-destination 192.168.0.9
-A POSTROUTING -s 192.168.0.0/27 -d 192.168.0.0/27 -o br0 -j MASQUERADE
-A POSTROUTING -s 192.168.0.0/27 -o eth1 -j MASQUERADE
Run Code Online (Sandbox Code Playgroud)
是否有另一种方法可以让我不必-d x.x.x.x
专门使用以防万一我的 WAN IP 发生变化?