LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Directory permissions (https://www.linuxquestions.org/questions/linux-newbie-8/directory-permissions-937114/)

gubby 03-29-2012 06:06 PM

Yes, the link you posted is the same one. What is a bash script? I appreciate all of the help you guys are giving me. I was trying to find a replacement for Fitness Assistant which is a M$ program.

chrism01 03-29-2012 06:14 PM

Working at the cmd line, you need to understand how it works ; try this tutorial http://rute.2038bug.com/index.html.gz.
Note that when you type into a cli, you are talking to a 'shell'; there are many types of shell, but on Linux the usual default is 'bash'.
(bash is basically a programming lang)
Check by running
Code:

echo $SHELL
& post the result.

A shell (bash) script is simply taking a sequence of shell cmds and putting them into a file, so that you can then invoke the file in one cmd, instead of running each cmd separately by hand.
See the tutorial linked above. If it helps, think of it as the equiv of DOS .bat files, except bash is much more powerful.

More bash links
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/

HTH

PS a a good searchable site for Linux cmds http://linux.die.net/man/

Antares.Liu 03-29-2012 06:53 PM

maybe the user you logined has no write permission of the directory.

yancek 03-29-2012 08:46 PM

In your post #13, you refer to files downloaded, files plural. The site I linked to which you indicate is the same on had only one file and that was a bash script. In your post #14, you indicate this file is in /usr/local/ and is named openfitness. When I downloaded it, I got the single file below. Is this what you have?

Quote:

openfitness_unix_1_0_0.sh
If it is and it is in /usr/local, log in to a terminal as root user and make it executable. Owner:group for /usr/local is root:root which is why you would need to log in as root.

At the root prompt type: cd /usr/local/
Next as root type: chmod 755 openfitness_unix_1_0_0.sh - or whatever the actual name of the file is.

This will make it executable for all. You could also move it to your /home/user directory.

gubby 03-29-2012 09:36 PM

Yes ,that is the downloaded file. But when I ran the file for installation, that's when it installed to those directories.

gubby 03-29-2012 09:43 PM

Yancek, that's not the problem.I have already made the file executable and have successfully installed it to my hard drive. When I start the program,that's when it shows me the warnings that I have previously described

yancek 03-30-2012 09:57 AM

Quote:

I have already made the file executable and have successfully installed it to my hard drive.
So the program has been installed to /usr/local?
How do you start the program? Clicking an icon, running a script in a terminal? as a user? as root?


All times are GMT -5. The time now is 01:28 AM.