On Tuesday 23 Feb 2010, John Cooper wrote: > On 23/02/10 14:47, [email protected] wrote: > > 1. If I enter ./startloopstop, I get the small dialogue box which gives > > the user control over the running program. When this is pressed a small > > file is written to the local directory, which is the signal, via > > checkforloopstop, to the running test program to exit the loop. This > > works fine for me. When the customer tries to do this, he gets > > 'Permission denied' when he types ./startloopstop. What other things > > could prevent execution, bearing in mind the file and directory > > permissionsseem to allow anyone to do anything? > > Remember anyone can run the file but it doesn't mean the programme can > write to the directory, so this is most likely the problem. For > security, startloopstop should not have write access, so should be set > to either 755 or 555.
That's the part I don't understand. The directory listing shows read/write/execute permissions to everyone, eg, users, group, world. The admin user can write to the directory, because he installed the software in the first place. He is in the mats group and so is the program binary startloopstop, so why can't startloopstop write to the directory? It has been able to in the past, so what could have changed? > > 2. If I open the passwd file, it tells me that the user called admin is > > a member of the mats group with the following entry: > > admin:x:500:1208: Administration Account for Installing Software: > > /home/: /bin/csh > > (the mats group has the ID 1208.) > > 2a. Does the x signify that the user has execute priveledge or is that > > something else? > > The x signifies the password is kept in a separate file called > /etc/shadow Thanks. > > 2b. If I type group mats I get permission denied, even when logged in as > > root. Why is that? I understood that this is a valid command. > > On Linux and Solaris it is "groups matt" OK. I'll try that when I get back to work tomorrow. However, why did I get 'permission denied' instead of 'command not found'? > > 2c. There is a file called profile in /etc, is that relevant? It seems > > to be a script. At the bottom of this file is the single line umask 022. > > sequence of startup-files for > > sh, ksh, bash: 1. /etc/profile, 2.$HOME/.profile > > csh: 1. /etc/.login, 2. $HOME/.cshrc, 3. $HOME/.login OK. Thanks. > > 3. In a csh, how do I find where I am? > > csh all commands are the same as bash or sh, but uses .login and .cshrc > instead of .bashrc or .bash_profile when you logon or start a csh. Check > if both of these files exists. Path will be set using > > set path = ($path $home/bin .) It was the command 'pwd' I was trying to find. I couldn't find it on the Sparc box because apropos didn't work..... I don't have access to a Linux box at work and the Sparc box isn't connected to a network. On my Linux box, I never need to use pwd, because the bash prompt tells me where I am. > > 4. In a csh, should appropos work? I can do man apropos, but foobar > > anything simply lists the paths that it has searched and failed to find > > man pages. > > Sounds like your path is not set up. > > http://developers.sun.com/solaris/articles/man_pages.html#4 I assumed that too, but why did 'man apropos' work? -- Terry Coles 64 bit computing with Kubuntu Linux -- Next meeting: Dorchester, Tue 2010-03-02 20:00 http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413 Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset List info: https://mailman.lug.org.uk/mailman/listinfo/dorset

