home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!linac!att!cbnewse!cbnewsd!att-out!oucsboss!oucsace!sadkins
- From: sadkins@bigbird.cs.ohiou.edu (Scott W. Adkins)
- Newsgroups: comp.os.linux
- Subject: Re: HELP: shell-init: Permission denied
- Message-ID: <1993Jan22.021300.17671@oucsace.cs.ohiou.edu>
- Date: 22 Jan 93 02:13:00 GMT
- References: <1993Jan18.034910.28658@cronkite.ocis.temple.edu> <1993Jan21.155119.11340@informatik.uni-hamburg.de>
- Sender: usenet@oucsace.cs.ohiou.edu (Network News Poster)
- Organization: Ohio University CS Dept., Athens
- Lines: 48
-
- In article <1993Jan21.155119.11340@informatik.uni-hamburg.de> hamdy@rzdspc18.informatik.uni-hamburg.de (Safuat Hamdy) writes:
- >
- >1. the login-dir of your user must be owned by that user and it
- > must have read and execute permissions set for the owner.
-
- I guess I will assume for now that this is true, but I will test this out
- and see what happens... :-)
-
- >2. the shell-initialization-files (for bash that is .bash_profile,
- > .bashrc, etc., for tcsh, if you have, that is .login and .cshrc.
- > see BASH(1) (TCSH(1)) man pages for more info about this topic)
- > must be owned by your user and must have at least read and exec
- > permissions set for your user.
-
- The only thing that I can say about the above is that the initialization
- files must be readable in some way to the user. It is *not* the case
- that the user has to own the file... :-) I have a guest account set up
- on my system and in order to protect that account from whomever logs in,
- I locked the password and changed the ownership of .login, .cshrc, .exrc,
- and .mailrc files to root.root (root owned, root group). This prevents
- the guest user from changing things. The account has been in use for
- awhile now and I have been on it a lot to test new stuff out. There
- has been no problems with it. I agree that the files should be readable,
- but I once again disagree that they have to be executable. (No, I haven't
- read the man pages about *this* particular topic, but maybe I will sometime
- soon. What I have mentioned from above is from experience.)
-
- >pwd, dir etc. will work fine. I recommend to use USERADD(8) because
- >initialization and perms setup will be done automatically.
-
- Again, I found this not to be true. The only thing the useradd program
- did was add the user to the passwd and shadow (password) files. It did
- nothing else. I thought it would create a directory, but it didn't. So,
- I did it myself. I thought it would set the ownership and group id
- correctly if I created the directory first. Well, it didn't. The end
- result was that I had to right my own shell script that would do all of
- the new account creation stuff for me. I am most certainly dissapointed,
- but that is alright... it at leasts puts the user in the password files.
-
- Well, this may not help the original original poster, but I just wanted
- to describe what I have found to be true with my system anyways. (By the
- way, I am using SLS 1.0, the .99p2 kernel release... pre-gzip days.)
-
- Scott.
- --
- Scott W. Adkins Internet: sadkins@ohiou.edu
- ~~~~~~~~~~~~~~~ ak323@cleveland.freenet.edu
- Ohio University of Athens Bitnet: adkins@ouaccvma.bitnet
-