I am trying to restrict all FTP users to the directory /jannik with the vsftp-daemon. I don't want them to go anywhere but the folder /jannik and it's sub-folders. Also, I don't want them to have write permission.  What you should know:   I have the following common settings   local_enable=yes write_enable=no  I use a user blacklist to only allow one specific account to access the ftp (userlist_deny=NO; userlist_enable=YES; userlist_file=/etc/vsftpd.user_list) In the user_list I've only one user (root)   Again, what I would like to accomplish:   Only allow that user to access /jannik and all it's sub directories   What I've tried to far:   Setting local-root=/jannik => This lets my ftp users all log on to the correct dir, but they can use /../ in the URL to get out of the directory, letting them full access to all my files on the VPS server I own. Additionally setting chroot_local_user=YES gives me an error: "500: OOPS: vsftpd: refusing to run with writeable root inside chroot()"   Do you have the idea, what could be wrong? I do not want to chroot their home directories, only to the given single directory.
I am running vsftpd as ftp server on my linux (rasbian), I log in to the machine as a root user.  I would like to be still locked to using only /var/www, how can I configure vsftpd conf to accomplish it?
Table with multiple merging Most of the places, examples for merging of cells in tables are given. But, I could not find a merging of cells in complicated fashion as shown below. This question may summarize all the possible methods of merging and may serve as the reference for all future questions on merging of cells. Experts can add much more complications if required. I have my own AppleID ("Bob") but I don't use this email addy "Bob" anymore. I want to add my current, daily used email addy ("Jim") to my ID, or better yet, make it my only AppleID and delete "Bob". BUT... I already used "Jim" for an AppleID for an older friend who had no email address, so set it up for him on mine, "Jim".  My older friend now has an email address ("Ivan") so can I   add "Ivan" to his AppleID, make it the primary email address, and then delete "Jim" from it? Or... delete his AppleID and create a new one for him "Ivan" knowing he would lose his minor purchases   And most importantly, this would all be pointless unless: - will deleting/removing "Jim" as linked to my friend's AppleID then make "Jim" available for me and no longer registered to another account? The Follow Questions and Answers feature is now live across the Network Conditions: do not modify the original lists; JDK only, no external libraries. Bonus points for a one-liner or a JDK 1.3 version. Is there a simpler way than: List&lt;String&gt; newList = new ArrayList&lt;String&gt;(); newList.addAll(listOne); newList.addAll(listTwo); How to get the IPV4 address for an interface from /proc Is there a clean, simple way to get an IP address for a network interface from /proc, similar to the way I can get the MAC address for a network interface? Ideally I would just type cat /proc/&lt;foo&gt;/{interface_name} and get the IPv4 address.  I'd rather not run anything other than cat. What really causes light/photons to appear slower in media? I'm one of very few people at my company who does graphic work, and I do quite a lot of it. Headquarters doesn't quite get that graphics work requires different hardware than, for example, sales work, which is pretty much email/Excel/Powerpoint/web browser and that's it. So they give everybody the same low-end rental PCs to work on.  This was tolerable when we were all on XP.  Recently I got "upgraded" to a new computer, which happens every two years or so as leases expire. The catch: the new PC had the same Core 2 Duo processor that the previous one did, less RAM, it runs Windows 7 instead of XP, and all the Creative Suite applications have been upgraded from CS3 to CS5! I am the first in my office to get 7.  So now I am in a situation where I have the slowest machine in the office, yet I have to do the most demanding work. I got them to OK 2 more gigabytes of RAM, and I hoped that would solve the issues, but it just isn't helping that much at all. I actually have to reboot every day after lunch because the machine stops responding after wake if you leave it asleep for too long.  I am currently talking to Information Systems to see if I can get a capable machine, but it does not bode well for me. Can anyone share any performance optimizations for Win7 that I might be able to use?  Thank you very much in advance! SS When trying to execute a symbolic link which points to an exe file (on Windows 7), the "Open with" windows appears. When renaming it to a ".exe" file, it says "The specified path does not exist. Check the path, and then try again.".  Symlinks to other destinations seem to work fine.  So is there any way to execute a symlink?  EDIT: In the command prompt, I execute the following and the MyProgram.exe runs both times.  However, if I double-click on the symbolic link in Windows Explorer it fails with the above error message.  C:\Temp&gt;mklink SomeProgram.exe MyProgram.exe symbolic link created for Backup.exe &lt;&lt;===&gt;&gt; Backup-1.0.1.exe  C:\Temp&gt;SomeProgram.exe  C:\Temp&gt;del SomeProgram.exe  C:\Temp&gt;mklink SomeProgram.exe C:\Temp\MyProgram.exe symbolic link created for Backup.exe &lt;&lt;===&gt;&gt; C:\Temp\Backup-1.0.1.exe  C:\Temp&gt;SomeProgram.exe sorry fresh user. I installed about 9 days ago and had issues with Unity disappearing which took 5 days of headaches to fix. It never did fix, I reinstalled.   I set up Plex (media server) and while the server is running and can be accessed by external network devices, I can't add files. Plex says this is because of permissions. I have gone up and down the forums here and at Plex to get an answer. It seems everyone says   chmod -R 755 /media/My\ Book/Videos   will change permissions to allow the folder "Videos" on my external USB 2.0 NTFS 3TB Western Digital drive (which is mounted and accessible through the file manager) as well as every sub-directory and file contained therein to be accessible to user "Plex".  I have used file manager and as soon as you click to change permissions it changes right back. When I chmod with -c it tells me every file is changed (usually 600) to 755 as I commanded it to do. I did   ls -l   to verify and there is no change. (I also used ls -l to make sure I knew who the owner was and it is me (mvl1014). ls -al gives me the same info.)  I swear to god I tried to sudo it and after smashing my head against this keyboard for basically the entirety of my day, I tried it as root. I was scared shi-less but couldn't come up with anything else. sudo su to root and then chmod -R -c /media/My\ Book/Videos  Same result. -c told me every single file was changed and a check in Unity or in terminal confirmed not a darn thing changed.  Now it seems to me that even if that isn't the thing stopping Plex from working there is still a problem with this command not going through.  12.04LTS -- on gen 1 i7 (2.7 GHz I believe) with 6 GB ram   I've attempted to attach a screenshot but I'm told I need 10 reps to do so, which means I'm copy/pasting too.  Please excuse my obfuscation, but Lorem Ipsum seemed unnecessary. And I tried multiple ways to format this but it looks perfect every way and messed up each time in the preview below. (Ugh, I'm a mess.)  $ chmod -R -c 755 /media/My\ Book/Videos  .....  .....  .....  mode of `/media/My Book/Videos/xxxx/xxxx/xxxx.mkv' changed from 0600 (rw-------) to 0755 (rwxr-xr-x)    ls -al shows:  mvl1014@FX6800:/media/My Book/Videos$ ls -al   total 88  drwx------ 1 mvl1014 mvl1014     0 Aug 28 15:17 .   drwx------ 1 mvl1014 mvl1014 20480 Sep  3 14:29 ..  drwx------ 1 mvl1014 mvl1014  8192 Aug 28 15:18 xxxx drwx------ 1 mvl1014 mvl1014 49152 Aug 16 14:02 xxxx drwx------ 1 mvl1014 mvl1014  8192 Aug 27 21:36 xxxx drwx------ 1 mvl1014 mvl1014  4096 Jul 23 19:09 xxxx   I apologize if this has been asked. I looked through this place plus at all the suggested "Similar Questions". The closet thing I got to an answer , but running the provided code with my own UID didn't work either. Destructive interference and energy conservation In case of interference, we know, energy is neither destroyed, nor created; but only redistributed. But in the case of an extremely thin film, due to a reflection and hence a phase difference of $\pi$, the film always appears dark due to destructive interference. So, where does the energy go? How can I determine the name of the Bash script file inside the script itself?  Like if my script is in file runme.sh, then how would I make it to display "You are running runme.sh" message without hardcoding that? Limit of a decreasing sequence of measurable sets. Let $(X,\mathcal{A})$ be a measurable space, with measure $\mu$. Let $\{E_n\}_{n \in \mathbb{N}} \subseteq \mathcal{A}$ be a sequence of measurable sets, with $E_{n+1} \subseteq E_n, \ \forall n \in \mathbb{N}$, that is a decreasing sequence, and $\mu(E_n)=+ \infty, \ \forall n \in \mathbb{N}$. Let $E=\bigcap_{n \in \mathbb{N}} E_n$ the limit set of the sequence, $E$ is measurable for definition. Is true that $\mu(E)=+\infty$? If not in all cases, is true with $X=\mathbb{R}^{N}$, $\mathcal{A}$ the collection of Lebesgue-measurable sets, and $\mu$ the Lebesgue measure on $\mathbb{R}^N$? Comma before which I'm not sure which of the following sentences is correct. Is the comma mandatory, optional or unnecessary? I've googled a bit about this topic, but I got confused.     Our mapping contains 2000 words, which map to more than one lemma.   or     Our mapping contains 2000 words which map to more than one lemma.   Context: In total, there are more than 2000 words.  I've read  . If I understand the answers correctly, my "which map to more than one lemma" is a defining clause and no comma is required. But is it wrong to add one? "I didn't realize it was him." Equivalent statement of AC or not? Here's a corollary of AC stating that: if there exists an onto mapping $f:A\to B$, then there exists a 1-1 mapping $g:B\to A$. What I'm confused about is that whether or not  AC can be derived from this proposition, in return? I have tried but haven't found a proof. Any help would be appreciated. Retrieve globalpicklist/globalvalueset without SOQL Is it possible to retrieve the values of a Global Picklist/GlobalValueSet using Schema class without a SOQL ? Why does bash show 'Terminated' after killing a process? Here is the behaviour I want to understand:  $ ps   PID TTY           TIME CMD   392 ttys000    0:00.20 -bash  4268 ttys000    0:00.00 xargs $ kill 4268 $ ps   PID TTY           TIME CMD   392 ttys000    0:00.20 -bash [1]+  Terminated: 15          xargs $ ps   PID TTY           TIME CMD   392 ttys000    0:00.21 -bash   Why does it show the [1]+  Terminated: 15          xargs after I kill a process, instead of just not showing it as it was just killed?  I'm using bash on Mac OS X 10.7.5. Posts linked in deleted answers still show up under "Linked" E.g. see . Why am I getting different results from two servers that located in the same destination network? There's two servers with the same network IP, and the only difference between them is the last two numbers like: 37.211.15.247 and 37.211.166.178. The Hosting Provider claims that the subnet mask for both networks is 255.254.0.0  When I try the command Tracert (Traceroute) to test the ping and to see what hops does it take to reach the destination server, I get different ping times and different forward path results which is strange because they are all located in the same company host.  Is there something wrong? Shouldn’t it take the same path too?  I have added the the full IP addresses to both servers as requested by some commenters. Well the two servers aren’t “International” anyways, so as far as I know, the only thing that comes to mind is the possibility that the two are configured on different subnetworks just like what . Though it’s suspicious.  UPDATE: After doing so much research, I found out the Subnet of these two hosts. They are on a /15 (255.254.0.0) subnet mask. Unfortunately, this is what that hosting provider claimed to me which is not true, and the true Subnet they apparently use is a /17 (255.255.128.0) Subnet mask. It turns out that they were definitely on different Subnets. That's why I got different traceroutes when I tested these two IPs 37.211.15.247 and 37.211.166.178  because they are clearly on different Subnets. Thank you everyone for these good answers, especially  his answer helped me a lot. How do I programmatically log in a user with a POST request? Do anyone have a working REST Login on Drupal 8? This is what I tried. POST /user/login HTTP/1.1 Host: 8.d8.local Content-Type: application/x-www-form-urlencoded Accept-Encoding: http://nikhilmohan.in Cache-Control: no-cache  name=test&amp;pass=password&amp;form_id=user_login_form  It returns me HTML instead of JSON.