Hot answers tagged

17

This is an issue that has appeared before: 4 years ago when upgrading from 12.04 to 14.04.1: Why is "No new release found" when upgrading from a LTS to the next? It looks like the same issue exists for the upgrade to 16.04.1 from Trusty Tahr with the relevant update log not yet updated. There is a choice of two reasonable solutions at the ...


8

The binary database used by locate (/var/lib/mlocate/mlocate.db) is updated once daily by cron, so locate will not find new files. You can fix this by first running sudo updatedb sudo updatedb && locate -e bench-repo It's a good idea to use the -e flag so you only find files that still exist. Oh and here's a bonus tip - you can get locate to ...


4

Two causes two actions In general when you are not able to locate a file or it is because recently created (after the last database update) or because it is not in the paths where updatedb is going to search its entries or matches some pruning rules(see below): In case it is a new file or directory, If you have enough privilege you can force an update: ...


4

No, disabling SSH access in the sshd_config file will not affect the ability to login locally or through the use of su command. Although you can limit the accounts allowed to connect with SSH as described in the referenced answer (i.e. by setting either DenyUsers specadmin or AllowUsers mary in the /etc/ssh/sshd_config file), it would still be less secure ...


4

Making many changes all at once Take the original file and save it as sshd_config.orig. Edit sshd_config to your heart's content. Run diff sshd_config.orig sshd_config >config.patch Keep the config.patch file somewhere safe. Now, anytime that you have a new and unedited version of sshd_config and you want to apply the same edits, run: patch ...


3

The problem in your approach is that you use exec. $ help exec exec: exec [-cl] [-a name] [command [arguments ...]] [redirection ...] Replace the shell with the given command. Execute COMMAND, replacing this shell with the specified program. ARGUMENTS become the arguments to COMMAND. If COMMAND is not specified, any redirections take ...


2

Under no circumstances permit your web server to run commands with sudo. Not even hyper-specific commands. This is a huge security risk. A web server should not be given permissions to access sudo commands, which then permit root access for commands. Especially when given nopasswd form of sudo, should your web server be breached, any command run by a ...


1

Your problem may have its root in various causes, here are the solutions for two of them: Folder and File Permissions Not only the site.com folder, but also all parent folders need to have their permissions set so apache can traverse them. Please check if /home, /home/ihab, /home/ihab/Workspace and /home/ihab/Workspace/Webdev do have proper settings. They ...


1

The Ubuntu Community Help Wiki has an article on creating a bootable ISO image from an installed system. It appears to use only command-line tools (no GUI). There are too many steps to list here, so I'll just include the link: https://help.ubuntu.com/community/MakeALiveCD/DVD/BootableFlashFromHarddiskInstall


1

The principle behind the www-data user is that it is an unprivileged user. When you run a daemon (background program like a web server), for security purposes it is good for it to drop privileges after starting, so that it spends the rest of its time with the lowest privileges possible. In the past the nobody account was often used for this purpose. The ...


1

It's the exact use case for the DenyUsers and AllowUsers lines in the file /etc/ssh/sshd_config. You can log in as an allowed user, and su to the privileged user when required. Also, if you want to beef up your security measures, you should look into using passphrase protected certificate-based authentication to log in as your regular users (such as Mary). ...


1

Of course. I never even have to use "sudo" with using "scp". Mind though: as with all remote copy-ing the servers need to be setup to allow it. You can even use "scp" without having to use a user and without providing a password if you want.


1

I solved this, by using gksudo in desktop files, like this: [Desktop Entry] Type=Application Exec=gksudo /home/kiosk/.config/autostart/serve.sh Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name=Serve I dont know why this worked though, if anyone knows, please tell.


1

Run sudo updatedb before locating. This will update the database.



Only top voted, non community-wiki answers of a minimum length are eligible