n138ct@tamuts.tamu.edu (Brent Burton) (03/20/91)
I've been adding a few binaries to my system and stuffing them in /usr/local/bin and their associated files in /usr/local/lib. I created these directories with owner id=bin and group id = bin. The files themselves are set as (bin,bin). My specific question is concerning pcomm and zmodem programs. Currently, pcomm is (bin,bin) with rwsr-xr-x permissions. I have the zmodem programs (sz and rz) set at (bin,bin) with 755 permissions. Now, when I try to download a file from a host, the transfer aborts and in the case of pcomm's xmodem protocol, I get the error "Can't create file blah_blah." If others are using this program, how do you have your files set? Also, with other binaries (such as gnuplot), what should the permissions be? In general, when I add new programs to my system, is there an owner id and a group id I should be setting them to? thanks, +----------------------+--------------------------+ | Brent P. Burton | n138ct@tamuts.tamu.edu | | Texas A&M University | Computer Science/Physics | +----------------------+--------------------------+
n138ct@tamuts.tamu.edu (Brent Burton) (03/21/91)
I want to apologize for wasting space, but on the other hand, I'd like to summarize what I did -- maybe someone out there has had problems in the past with pcomm. Compiling Pcomm I moved all the files from the unixpc directory of the pcomm.cpio archive in with the rest of the source files, overwriting some. I then typed nohup make &, logged out and went to bed. It compiled fine. Installing Pcomm I initially changed owner and group to (bin,bin) on the pcomm executable files and moved the binaries to /usr/local/bin. My error was setting the user id bit on the pcomm binary (rwsr-xr-x bin bin). This did not allow file transfers to run since the userid was bin and it couldn't write to my directory. I carefully reread the docs ad notes and eventually fixed the problem. In my home directory I created a pcomm directory that contained copies of the /usr/local/lib/pcomm/pcomm.* files for my own use. Now when I run pcomm, I enter pcomm -d $HOME/pcomm and everything works fine. If my system is ever supporting multiple users, the others will have to have pcomm directories in their home directory also. Thanks to all who responded to my original post. +----------------------+--------------------------+ | Brent P. Burton | n138ct@tamuts.tamu.edu | | Texas A&M University | Computer Science/Physics | +----------------------+--------------------------+
murphyn@motcid.UUCP (Neal P. Murphy) (03/22/91)
n138ct@tamuts.tamu.edu (Brent Burton) writes: ... >My specific question is concerning pcomm and zmodem programs. Currently, >pcomm is (bin,bin) with rwsr-xr-x permissions. I have the zmodem programs chmod u-s pcomm will unset the set-uid bit in the mode. Right now, whenever you run it, it ends up running as user 'bin'; and bin, most likely, does not have write access to the directory to which you are transfering the file. NPN