piwik

dijous, 5 de juny del 2014

500 OOPS: Vsftpd: Refusing to Run With Writable Root Inside Chroot () on Debian

I am currently the GNU/Linux sysadmin of a small company who runs mainly Ubuntu installations for almost all the machines, including servers and workstations. Since the first day I got here I already found so many problems related to Ubuntu OS, so I decided to move the server infrastructure to Debian GNU/Linux starting from FTP server.

We were running vsftpd 2.3.5-3 which doesn't allow the users to have write access to their root directory unless

allow_writeable_chroot=YES

is specified. But in order to do so, we need to get a patched version(2.3.5-10 or above) available through Cyconet
It is pretty simple to install, we add the repos, install the new version, allow writeable chroot, and restart the server:

echo "deb http://ftp.cyconet.org/debian wheezy-updates main non-free contrib" >> \ /etc/apt/sources.list.d/wheezy-updates.cyconet.list; \ aptitude update; aptitude install -t wheezy-updates debian-cyconet-archive-keyring vsftpd && \ echo "allow_writeable_chroot=YES" >> /etc/vsftpd.conf && /etc/init.d/vsftpd restart

dilluns, 2 de juny del 2014

Mount cifs on Ubuntu fails, permission denied mount error(13): Permission denied

When trying to mount a Synology CIFS share an error message was shown, it says :

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

After making sure the credentials were correct, I found the solution in some forum, which is setting up a flag like this:

echo 0x27 > /proc/fs/cifs/SecurityFlags

And adding the domain and sec parameter when mounting it using fstab

//192.168.60.24/ic3data/jandres /ic3data cifs username=jandres,password=secret,domain=WORKGROUP,iocharset=utf8,sec=lanman  0     0