cd /var du -h --max-depth=1 | sort -hr
Add sudo to the front of that so you can get all the folders info.
sudo du -h --max-depth=1 | sort -hr
I found this article that intrigued me and challenged me to try ditching Google as well. As google is recording every small detail of your daily habits.
Eh, let them. This makes my life better, in fact I'd offer them more data on me if I could.
It turns out that while I was running Ubuntu 17.10, it had been upgraded from 17.04 and that upgrade had left the Unity UI installed and active. So the reason why I was not seeing the GNOME shell extension options in the tweaker tool was due to the fact that it was actually Unity and GNOME I was in. One hell of a noob mistake.
Once I switched to GNOME, it was all working and I am much happier with GNOME over Unity.
So I am running Ubuntu 17.10, and it is completely up to date as of this morning, and my UI is Gnome.
I am trying to install the Dash-to-Dock shell extension so I can move the launcher to the bottom of the screen, and it's just not working. No matter what I try.
I installed the Gnome Tweak app, and there is no "extensions" option in it. I installed gnome-shell-extensions and then I installed gnome-shell-extension-dashtodock. And still nothing.
I then installed chrome-gnome-shell and the chrome browser plugin (version 9) and still I cannot enable the extensions. It tells me:
Unable to locate GNOME Shell settings or version. Make sure it is installed and running.
GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.gnome.Shell.Extensions' on object at path /org/gnome/Shell
I have located and gone into each of the extension JSON files and verified that the version listed matches the installed version (3.24). I have also noted that there is no ~/.local/share/gnome-shell folder on the machine (not idea why).
So I am completely out of ideas here, anyone got any suggestions about what I am doing wrong? All my google results seem to imply that this should be a pretty easy thing to do, with just one or two commends. But NOTHING I find it working.
For the record, this machine is running the Nvidia proprietary drivers for the display, but most everything else is out of the box Ubuntu 17.10 stuff.
With help from @anthonyh we were able to come up with a work around.
I set the user's home folder (/home/<user>) as the CHroot path, set that as root:root with 755 permissions. Then I created a bind mount to a subfolder called website (so /home/<user>/website is a bind mount for /var/www/sites/site.domain.com/<user>), then chowned that folder to <user>:root with 755 permissions.
Now they can SFTP in, and change to the website folder and put their stuff there. No more seeing all the other users and folders.
For the record here is my SSHD config lines:
#Subsystem sftp /usr/lib/openssh/sftp-server Subsystem sftp internal-sftp Match Group sftpgroup ChrootDirectory /home/%u # or %h either would work ForceCommand internal-sftp X11Forwarding no AllowTcpForwarding no
And the steps I used to get this working:
sudo adduser <user> --ingroup sftpgroup --shell /bin/nologin
sudo mkdir /var/www/sites/site.domain.com/<user>
sudo chown <user>:root /var/www/site/site.domain.com/<user>
sudo mkdir /home/<user>/website
sudo mount --bind /var/www/site/site.domain.com/<user> /home/<user>/website
sudo chown root:root /home/<user>
sudo nano /etc/fstab
/var/www/site/site.domain.com/<user> /home/<user>/website none rw,bind 0 0
It's not as neat as I'd like it, but it works.
Ok, so I have a user setup for SFTP only access, and I have this in the SSH config file:
#Subsystem sftp /usr/lib/openssh/sftp-server Subsystem sftp internal-sftp Match Group sftpgroup ChrootDirectory /var/www/sites/site.domain.com/%u ForceCommand internal-sftp X11Forwarding no AllowTcpForwarding no
The user is created by using this command:
adduser <user> --ingroup sftpgroup --shell /bin/nologin
They can SFTP in, and they get dumped into the right folder (their username folder) but they cannot create folder or files, they have read only access if I change the permissions on their folder, then I cannot connect and if I change the path of the ChrootDirectory to be one folder up they can then get into their folder and do what is needed, however they then have access (read and execute) on all the other user folders.
And I do not want to add a subfolder under their folder for them write to, that would end with their site being site.domain.com/user/folder, which is silly.
Any suggestions on how I can get this working?
Yes, I could do this with a stand alone linux install, but ain't no one got time for that.
It HAS to be faster to deploy Linux than unRAID. I mean, it literally seems like an impossible thing to say. And Docket is this...
dnf install docker
That's all that there is. Docker is super fast and easy to install.
Yeah, that's just docker installed. You then need to create the container with the solution in it that you want to use, and this would be far more time consuming that just a single command. In unRAID I locate the pre-built docker container with the app in it that I want to use and click install. 30 seconds later it is installed and ready to go.
Looks like your connection to MangoLassi was lost, please wait while we try to reconnect.