Tag Info

New answers tagged

0

Linux at least would allow you to use a bind mount to make either a directory or alternatively a single file available at multiple places. Not tested, but in theory it should work... mount -t bind /var/MySQL.sock /chroot/var/MySQL.sock


0

The easiest solution that I found (didn't need any third-party packages installed) was mentioned in a similar thread over on at Unix & Linux site: use the script command. It's old, and likely already installed. $ script -q /dev/null long_running_command | print_progress # FreeBSD, Mac OS X $ script -q -c "long_running_command" /dev/null | ...


3

I think you can set the default by editing /etc/default/useradd file and changing the SHELL= line.


3

Depends on what you are using to add users. If it's the adduser command, then edit your /etc/adduser.conf file -- there you will find the default login shell option, namely: DSHELL. If, on the other hand, you prefer to use useradd then use it with the -s <shell of choice> parameter. If you wish to change the shell of existing users you can simply ...


1

I think useradd lets you set this: useradd -D When invoked with only the -D option, useradd will display the current default values. When invoked with -D plus other options, useradd will update the default values for the specified options. Valid default-changing options are: <...snip...> -s, --shell SHELL The name of a new user's login shell. ...


-2

open powershell cd to the directory you want to upload run the following commands: 1. gci -r | % {if ($_.PSIsContainer) {$t = $((($_.fullname -split "\\")[$(((pwd) -split "\\").length)..200]) -join "/"); "mkdir ""$t""`r`nmput ""$t/*"" ""$t"""}} | sc .\mput_all 2. notepad .\mput_all Paste the results into your ftp window. Enjoy. Also don't forget to add ...


1

I found a nice solution on superuser.com which is much like @adaptr's solution but without manually setting the environment variable. By creating an alias for ssh you can set that variable automatically: alias ssh='env SSH_PWD="$PWD" /bin/ssh' Configure ssh in ~/.ssh/config to send the SSH_PWD variable: For a single host add this: Host myhost SendEnv ...


0

I have discovered that you need to quote the bash line for it to recognize the -l properly, like this: ssh HOSTNAME "bash -l /path/to/script.sh"


0

From the man pages of my server: Reads the file ~/.ssh/environment, if it exists, and users are allowed to change their environment. See the PermitUserEnvironment option in sshd_config(5). So before you can do anything from the env, you need to allow it in /etc/ssh/sshd_config, and after enable the property PermitUserEnvironment, set your env vars in ...


0

When you run a command as an argument to ssh, the command is run directly by sshd; the shell is not involved. You can verify this using something like the following: ssh b@B pstree It is the shell (bash in this case) that pulls in your .bash_profile, and it only does so if the shell is invoked as a login shell, or if the shell was invoked with the --login ...


1

Linux From Scratch (LFS) is a project that provides you with step-by-step instructions for building your own custom Linux system, entirely from source code..


2

I had a similar task last week. My solutions was to multiply the standard cron entries to the desired frequency. My crontab looks like: * * * * * /usr/local/bin/php /var/www/myscript.php * * * * * sleep 10; /usr/local/bin/php /var/www/myscript.php * * * * * sleep 20; /usr/local/bin/php /var/www/myscript.php * * * * * sleep 30; /usr/local/bin/php ...


-1

Please make changes as below and check. In ~/.subversion/config file :- (Changed as) Section for authentication and authorization customizations. [auth] Set password stores used by Subversion. They should be delimited by spaces or commas. The order of values determines the order in which password stores are used. Valid password stores: gnome-keyring ...


0

glibc provides definitions for all those system types. You can check /usr/include/bits/typesizes.h: % grep UID_T /usr/include/bits/typesizes.h #define __UID_T_TYPE __U32_TYPE Next you look into /usr/include/bits/types.h: % grep '#define __U32_TYPE' /usr/include/bits/types.h #define __U32_TYPE unsigned int This lets you find out ...



Top 50 recent answers are included