Tag Info

Hot answers tagged

2

Basically the first command: sudo chmod -R 777 /var/www/ Makes it readable, writable and executable by anyone (any user). You are on the right track with the latter commands, as you can set chown to www-data. www-data is a default user/group for Apache. Or you could create a new group and add yourself and www-data there, then assign the group to the ...


2

If you have execute without read permission on a directory, you can include it in a path, but you cannot see its contents, so if you are in /var/www you can for instance see the contents of the html subdirectory with ls html, even though you cannot see html with a simple ls. You need to run: sudo chmod uga+r /var/www It's possible that you may not need ...


2

Question: Would it still be possible for the non-root user to use "su" to become root? If yes, then how many password attempts are allowed (i.e., is this too a situation where by default there's no limit to password attempts?). Answer: Yes, there is still unlimited attempts to connect using 'sudo' and 'su' by default but you could limit it with pam.d. The ...


1

You have different possiblities: If your program is already running Press CTRL+Z to suspend your program. It will not be running now. To resume the program in the background, type bg and press ENTER. If you want to start a new program in the background directly Simply add & to your program before you start it: $ geany "do_while.cpp" & You might ...


1

Is Time Machine set to allows ssh on that port? Check ssh_config. (You can find it with locate ssh_config and usually in located in /etc/ssh/ssh_config).


1

Windows 10 Technical Preview, as the name suggests, is not for production. I think it's your fault, that you can't access your files. What I have read, Windows 10 automatically locks if you don't update it, but I don't know how to do it, because I'm not using it. The only thing that comes to my mind is accesing the Windows 10 partition offline from Ubuntu ...


1

All windows installers (at least the ones that I've used from 3.1 to Win 7) install their own bootloader if one is not found (and of course, it does not recognize Grub or Lilo). What you need to do is reinstall grub, by booting up linux somehow (live CD, the install image, or a USB install. It doesn't matter, really), and run this command: grub-install ...


1

It's not an Ubuntu difference, it's how Linux permissions work. Execute (x) permission is to access the directory, Read (r) permission is to list its content. From this article on Wikipedia, that I recommend you to read all: When set for a directory, this permission [executes] grants the ability to access file contents and meta-information if its name ...


1

I would recommend checking the system log in /var/log/syslog when you do an Apache2 restart. Meaning have one terminal window opened up with you viewing the syslog via tail like this: sudo tail -f -n 10 /var/log/syslog And in the other window attempt to restart Apache. But your syntax of sudo /etc/init.d/apache2 restart seems clunky when you could just ...


1

The message indicates that prctl(PR_SET_SECCOMP, ...) call failed. ret = prctl(PR_SET_SECCOMP, 2, &prog, 0, 0); if (ret != 0) { die("prctl PR_SET_SECCOMP failed"); } It can happend when your kernel does not have CONFIG_SECCOMP_FILTER enabled. But that can hardly change while you "work on website". Quote from prctl man page: PR_SET_SECCOMP ...


1

Short answer, you cannot change the ip of the VPN interface, as it is being given to you by the oposite site. Given that 10.x is a class A network, you usually don't have a Class A network on both sides, which makes me wonder how you ended up with a class A network you're currently in. Either ask the opposite side to change their network, or change yours.


1

Split doesn't support suffix for output file names. AFAIK it supports only prefix. For text files, you could try awk: awk 'NR%25==1 { i+=1;file = "/home/ubuntu/PL/trab3/rc" "_" sprintf("%02d", i) } { print > file }' /etc/adduser.conf


1

Upload a file to a remote location via command line #!/bin/bash #$1 is the file name #usage:this_script <filename> HOST='yourhost' USER="youruser" PASSWD="pass" FILE="abc.php" REMOTEPATH='/html' ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD cd $REMOTEPATH put $FILE quit END_SCRIPT exit 0


1

If reset/shutdown isn't the important part of it, you could hibernate the machine, suspending the state to the disk. That way you are able to power off the computer without losing your state. Another way would be to make use of tmux and scripts to have the state start automatically, then you could use your Desktop Environment to keep track of the windows ...



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