On 23/02/10 14:47, [email protected] wrote: > > The user admin is listed as the account for installing software and he gets a > csh to use. I'm fairly unfamiliar with the csh, so I've had to feel my way > around using our reference machine (which is still running SunOS 5.7) to > remind > myself what we did. Here is what I've found: > > 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. > 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 (the original passwd format held the actual password in that field but was moved to a different file for security (only root has access to /etc/shadow). > 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" > 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 > 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 .) > 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 -- -------------------------------------------------------------- Discover Linux - Open Source Solutions to Business and Schools http://discoverlinux.co.uk -------------------------------------------------------------- -- 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

