Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
In FAR manager, I can open seperate command window at the current location by just typing start. For example, Active Panel in FAR is in c:\Projects and I type "start" it opens a new console window with path c:\projects. I want to open PowerShell with current path, For instance I type PS, it opens powershell window with location set to c:\projects.
Any ideas?
One solution is with this command
start powershell.exe -noexit -command "set-location '%cd%'"
Another option is
powershell -noprofile
which has the side effect of not loading your profile, but since your profile contains code that sets a specific path ...
type dot '.' and press shift+Enter.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
i would like to know how can I get the path to sources.list on a modified UNIX which have apt and other base packages on it , like gpg and sudo. Does apt can identify the path to sources.list ?
He is using it , so he should be able to locate it, right ?
I don't know if this is the best way, but apt-config dump will show all of apt's configuration variables. On my system, the Dir::Etc variable gives the directory where the file is located, and Dir::Etc::sourcelist gives its name.
You can also read in the apt-config man page about the shell option which may be more useful for processing this data in a program.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a script with permissions -rws--s--x
When i run the script from an user called "user1" the process always run as root.
What is the reason the script run as root and not run as the user who starts the script?
It's because of the "s" bit (setuid permission) - it escalates the process to run as the permission of the owner of the executable (often root) for when a regular user doesn't have permissions to do some system operation. Those are generally to be avoided because if they there's a bug/exploit on it someone can easily get root access to your system. More details here
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to send a mail to abc#abcd.com when someone is logging in via FTP. I have tried using /etc/pam.d/vsftpd "session optional pam_exec.so /path/to/my/emailing_script.sh" but it doesn't work (i have tested this script in /etc/pam.d/sshd and it works).
Any suggestions?
Thanks in advance.
In order for vsftp to use the pam sessions you need to enable it in the configuration file:
add (or update) the line
session_support=YES
without that line PAM sessions will not be used so your PAM session module will not be run either.
Look for "session_support" on this documentation page.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
We need to password protect the activities on the crontab, for ex even if we try
crontab -l
or
crontab -e
or
crontab -r
We would have to enter a password to go to the next level(viewing/editing/deleting) even if we are root user.
Kindly suggest some mechanisms.
Thanks.
If you don't trust the root user on your system I would say you have big problems. I don't think there is any way to securely protect anything from root - by definition this user can do what they like, including removing any protection you put in place to try to enfore a password when executing crontab.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
When open a query in Microsoft project, the start date changes. Please note that, the start date is a custom field.
I found the answer, update the mappingfile of your project to map the custom tfs field to Project's start field like :
the mapping file can be upload, downloaded using "TFSfieldmapping" command on vs command prompt.
I am still facing a problem, that is when the task has child items, the start date is not reflected. Only for a task that has no child items, the date is reflected properly.