I've installed vsftpd on ubuntu 18.04 and I'm able to connect but I want to put a file there to check download.
I can't seem to find the default directory path for anonymous user.
Found it, the default directory for anonymous user is /srv/ftp
https://wiki.debian.org/vsftpd#Anonymous_access
Related
I'm an undergraduate research assistant working on a Linux server without root privilege. I'm trying to install the Rstudio server but the Rstudio website only provides the installation method for sudoers. Is it possible to install it without root access? I'm asking because I'm really not sure if I could get access from the manager. Any help will be appreciated!
No, you can't install it without root access. But there are a couple of things you could do to piece together a solution. Here are two options:
Extract the server and run it directly
You have to be root to install packages, so you can't install the .deb/.rpm file yourself. However, you could extract the contents of the file to a directory inside your home directory and run RStudio Server from there, by executing the rserver program in a regular shell.
Note that this will probably require an afternoon of editing the rserver.conf file to tell it where to find the rest of the files in the installation (since it presumes they are installed in /usr/lib by default). You can get some inspiration for how to do this here: https://github.com/rstudio/rstudio/blob/master/src/cpp/conf/rserver-dev.conf
Run the desktop version and forward the graphics
The other route is to run RStudio Desktop on the server; we make several builds of RStudio Desktop that are installer-less and can just be unpacked into your home directory. Then run an X11 server on your own computer and an X11 client on the RStudio server, so that the RStudio Desktop instance appears on your computer instead of the server.
Yes, you can run rserver without root priveliges.
For RStudio 1.4 I patched the following line into src/cpp/core/LogOptions.cpp
const FilePath kDefaultLogPath = core::system::xdg::userDataDir().completePath("log");
Then you need to set the system environment variables to some location read-writeable for the user, like
RSTUDIO_CONFIG_DIR=$HOME/.config/rstudio
RSTUDIO_CONFIG_HOME=$HOME/.config/rstudio
RSTUDIO_DATA_HOME=$HOME/.local/share/rstudio
And start rserver with the option
--server-data-dir={directory writeable for user}
--server-pid-file={file-path creatable for user}
--database-config-file={config-file}
With these adjustments it runs for me when I start it as a simple user (no root privileges) with
rserver --auth-none=1 --www-frame-origin=same --www-port={port} --www-verify-user-agent=0 --server-data-dir={my-tmp-path} --server-pid-file={my-tmp-path}/rstudio.pid --database-config-file={my-tmp-path}/db.conf}
ATTENTION:
But be aware, that anyone who can reach your system and the specified port from the network has access to the running RStudio in his browser and therefore can run any command in the name of the user on your system now.
/Users/myname
zsh: permission denied: /Users/myname
I already gave the terminal full disc access and restarted my mac but it won't let me access this directory.
You need to enable auto_cd. Add this to your ~/.zshrc:
setopt auto_cd
If you execute the command /Users/myname, it doesn't make sense, it's like asking a folder to execute.
You probably want to change directory, so cd /Users/myname
Use following command and enter password when promoted (Administrator mode)
sudo su
After this you can run script which is showing permission denied messages while accessing any directory or file
I was wondering why it won't let me change my working directory.
I keep seeing this error:
Error in setwd(dataDir) : cannot change working directory
This is my code:
dataDir <- "C:/Documents and Settings/My Documents/R/"
setwd(dataDir)
Seems to be an annoying Windows permissions issue; that's a legacy directory.
There are 2.93 million Google hits along the lines of "Windows (7/)10: Access to the path 'C:\Documents and Settings' is denied". Look for advice in Windows forums, and check what the ownership and permissions on "C:/Documents and Settings/My Documents/..." are currently, and what they're supposed to be, and whether Administrator account is enabled. (Frankly not the best choice for the R install packages directory, but many installers use it, or default to it.)
Please confirm that setwd() works fine for a more harmless choice of directory, e.g. 'C:\Users\your_name\R'
Are you running R as Administrator or User?
Did you install R as Administrator or User? (which installer did you use, and which installer version/date? R-project's? Anaconda? another?)
There must be an error in the path. It should look like C:\<your_username>\Documents and Settings\My Documents
Or try
setwd("C:\\[your_username]\\Documents and Settings\\My Documents\\R")
"Documents and Settings" is a directory that exists in really old versions of Windows (XP and earlier). In Windows 10, your user data is under C:\users\<username>, and your documents are in C:\users\<username>\Documents.
As far as R is concerned, under Windows 10 the home directory ~ maps to C:\users\<username>\Documents.
Run Rstudio as Admin.
then run dataDir <- "C:/Documents and Settings/My Documents/R/"
setwd(dataDirstrong text**)**
First I had that problem that whenever I have to install any plugins, I have to put in my FTP details. I fixed it but now it says that could not create directory. Permission is set rightly but still
"Downloading install package from https://downloads.wordpress.org/plugin/ftp-access.1.0.zip…
Unpacking the package…
Could not create directory."
Any help ?
You should fix your WordPress folders permissions.
This link will take you to instructions how to do it right.
I just worked with Windows 7 before and now I'm working with MAC OS. I cloned my project (it works with Twig and wordpress and I'm using a virtual machine via vagrant) and everything should work but when I enter the website it gives me the following message:
Uncaught exception 'RuntimeException' with message
'Unable to create the cache directory (/vagrant/myProject/cache/c2/94).'
in /vagrant/myProject/wp-content/.../libraries/Twig/Environment.php:1199
I guess it is some kind of problem about permissions but I don't know how to fix it exactly. Any help? Thank you.
As soon as you created a /vagrant directory, I think default permissions are root.
You can try:
sudo mkdir /vagrant/myProject/cache
sudo chown -R $USER:staff /vagrant
And then try again (assuming your current user runs the apache server).
If this does not work, please do:
ls -l /vagrant
and:
ls -l /vagrant/myProject/cache/
And try to set permissions so the cache permissions are the same.