Questions tagged [path]

218 questions
1
vote
1 answer

Where can $PATH be defined for non-login shell on Red Hat

I need to add a directory to the path for non-login shells on a Red Hat Server. ssh user@server echo \$PATH returns /usr/local/bin:/bin:/usr/bin How can I add a directory to this path. I tried putting export PATH=$PATH:/my/path in /etc/bashrc…
draenen
  • 163
  • 4
1
vote
5 answers

How can I modify path of a user with no home folder?

I have a user on my RHEL5 system whose home folder is /tmp. This user is for running some monitoring tasks, it doesn't represent a human being. What are the options for modifying this user's PATH environment variable? I would like to add /usr/sbin…
Rich
  • 1,343
  • 7
  • 28
  • 39
1
vote
5 answers

Problems with sudo in path

Using: Linux nomemory 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:17:33 UTC 2010 i686 GNU/Linux I have a folder in my $HOME called ~/.scriptfarm/scripts where i keep some of my custom scripts. nomemory@nomemory:~$ ls -l…
Andrei Ciobanu
  • 195
  • 1
  • 1
  • 7
1
vote
2 answers

Nginx gives an incorrect CSS mime type when path contains dashes

We migrated our web servers to Nginx mainly for performance reason, flexibility and ease of configuration (In this regard, a great load of satisfaction!). However, only one site showed a strange behavior: it loads in its a CSS
Déjà vu
  • 5,546
  • 9
  • 36
  • 55
1
vote
1 answer

sed can't find a file that obviously exists

I run the following command which comments out all lines that contain the text "dlclose" grep -lIR "dlclose" . | grep -v ".svn" | xargs sed -i "s/.*dlclose.*/\/\/&/g" However, sed claims that the piped files don't exist: sed: can't read…
user50914
  • 121
  • 1
  • 3
1
vote
1 answer

How to change cron PATH permanently?

We need /usr/local/bin in cron's path! this way: http://discuss.joyent.com/viewtopic.php?pid=213759 didnt work for us.
grosser
  • 277
  • 4
  • 8
1
vote
3 answers

How to know the full path of a file using SSH?

I'm beginner for SSH stuff, but I want to dump a big sql file and for that I need to be able to navigate to the appropriate path in my hosting account. I managed to login to SSH and I typed pwd, but it gave me a shared hosting pathway like…
Roy
1
vote
2 answers

Setting module path in lighttpd config file?

What is the option in lighttpd.conf to set the default path for lighttpd to look for modules? My lighttpd would not start because it keeps looking for critical modules at the default path, and I had the server installed at another location. Thanks!
futureelite7
  • 207
  • 1
  • 4
  • 8
1
vote
0 answers

DOS path not resolving in VM

As a developer, I had our systems team setup a VM of a server to practice an upgrade of an old third party application. This server has its own instance of SQL Server 2000 that's used exclusively for this application. When I started up SQL Server…
Feckmore
  • 145
  • 2
  • 3
  • 7
1
vote
2 answers

Apache rewrite rule for a folder to a different domain

I need to redirect all requests concerning a folder to another (old) web server called www2 keeping the entire original path, for example https://www.example.org/thisfolder/maps/map.jsp?id=2345 must be redirected…
Steph
  • 13
  • 2
1
vote
2 answers

take the value from path in location and return it along with a string in nginx

I am a newbie in the world of Nginx. While learning it, I am trying to accomplish this: I want to return a string whenever someone hits this URL: /greet/user and the string will be 'Hello user.' So, if someone hits localhost/greet/john, the page…
lone wolf
  • 11
  • 3
1
vote
1 answer

extract full path FIND with special character handling

Executing a comand like: find /some_path -mtime -3 -type f -name "*.txt" the out is something like: /some_path/file 1.txt /some_path/file2.txt If I include this output in rsync with something like: rsync --progress --protect-args…
1
vote
0 answers

nginx configuration for nextcloud with path

I run nextcloud on docker (image nextcloud:production-fpm) with an nginx-container (image: nginx) as reverse-proxy (handling SSL-termination) based on the example nginx-configuation…
soriak
  • 13
  • 5
1
vote
0 answers

macos: env: python: No such file or directory when I use dot slash on a .py file

I thought all I had to do was add things to my path and pythonpath but MAC os still cannot find Python when I do a ./myfile.py etc... my .zshrc: export…
Codejoy
  • 107
  • 5
  • 17
1
vote
1 answer

Nginx - Block access to portion of path only, to all but specified IP range

I'm trying block access to a portion of a path via Nginx, unless the source IP is within a specified range. I think I've got this mostly working through much trial and error, but I seem to run into trouble when the path contains query…
Ren
  • 11
  • 2