10-26-2010
Maybe I have an old ksh? Revision: 82.10.1.61
You can do the eval right on the find, saving much clutter.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there a very easy and configurable method to lock a user into their home directory?
I've checked on chroot() methodology.....but i'm not to excited about copying around ( or symlinking) libraries..binaries....etc.
Thought about altering the groups via chgrp...to only allow read access to... (1 Reply)
Discussion started by: thomas.jones
1 Replies
2. UNIX for Dummies Questions & Answers
Hi all
I need help finding a process that is continuing to create files in the above area. There are three sub folder titled addr q.local and msg . I have already found a process called mmdf running and have used the kill command to stop this from running. I have also looked for sendmail or... (12 Replies)
Discussion started by: TeaMaker
12 Replies
3. HP-UX
Hey, new here, so be nice! I'm trying to write a little script to automate the user creation process on one of our boxes. But I would like to be able to use the templates that we have set up in SAM. Is the information in these templates stored in a file somewhere, that I can reference in my... (5 Replies)
Discussion started by: paqman
5 Replies
4. Shell Programming and Scripting
Hello,
I am trying to find out all users who still have a home dir but do not exist anymore in /etc/passwd file. Here is what I did but I am getting the opposit of what I want. Any suggestion?
for USAGERD in `find /home -type d -exec ls -d {} \;`
do
USAGER=${USAGERD##/*/}... (4 Replies)
Discussion started by: qfwfq
4 Replies
5. AIX
While doing a "little" clean up job, i noticed something weird...
A ls -altr of my / showed this:
drwxr-xr-x 1549 johcham grands 102400 Jan 28 13:13 home
How can a user become the owner / modify the group of my /home??? any thoughts? Can i chown this back to bin:bin (i think that... (2 Replies)
Discussion started by: Stephan
2 Replies
6. Red Hat
Hi,
By default user's home directory will be /home/$user.
I want to change it to /javauser/$user. How can I do it?
Thanks
Jeevan. (5 Replies)
Discussion started by: jredx
5 Replies
7. Solaris
Hi all
i am using solaris 10, i am creating user with
useradd -d/home/user -m -s /bin/sh user
user is created with in the following path
/export/home/user (auto mount)
i need the user to be created like this
(/home as default home directory )
useradd -d /home/user -m -s /bin/sh... (2 Replies)
Discussion started by: kalyankalyan
2 Replies
8. Solaris
Where in the world are the ssh private keys stored on the home server? I know the public keys are renamed to authorized_keys under the /export/home//.ssh directory on the remote server. (1 Reply)
Discussion started by: jastanle84
1 Replies
9. UNIX for Dummies Questions & Answers
Whenever i switch from root to another user, by doing su - user, it takes me to home directory of user. This is very annoying as i want to be in same dir to run different commands as root sometimes and sometimes as normal user.
How to fix this? (1 Reply)
Discussion started by: syncmaster
1 Replies
10. Shell Programming and Scripting
I'm writing a shell script in AIX and using ksh.
I have a scenario where I have a variable A which stores $B.
so when i echo "$A" it prints $B
But I wish to print value stored in var b ie. \a\dir\res\
I wish to store \a\dir\res\ in a third variable C.
later I want to cd into that path :... (1 Reply)
Discussion started by: simpltyansh
1 Replies