Sponsored Content
Top Forums Shell Programming and Scripting how to find out the home directory of a user?? Post 302183146 by wrapster on Tuesday 8th of April 2008 11:57:49 AM
Old 04-08-2008
Hi,
I forgot to mention, i would like to know how to incorporate it into a script..
I mean how to give input to $HOME so that depending upon the username the $HOME gives me the home dir...

I must also mention, i will not be running as root...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How can I forbid a user to go up his home directory

Hi everybody, How can I forbid a user to go up his home directory ? Thanks MarcoW (2 Replies)
Discussion started by: MarcoW
2 Replies

2. UNIX for Dummies Questions & Answers

user home directory problem

The home directory for me on my system is on /home/kwon. It was created using "useradd kwon" When i go to change the home directory for a user doing a usermod -d /home/test when they log on it gives them messages saying to generate new ssh keys, and it does. It gives me a thing that says... (1 Reply)
Discussion started by: BangYourWallnut
1 Replies

3. UNIX for Dummies Questions & Answers

Specifying FTP user Home Directory

Hi, I am running Solaris 10 and I am using the ftp server that comes with it. I would like to specify a specific directory as ftp user's home directory. For example, if "ftpuserx" ftps into my solaris machine, they will automatically be taken to "/space/web" directory, even though there... (0 Replies)
Discussion started by: annointed3
0 Replies

4. Solaris

Restricting SFTP user to a defined directory and home directory

Hi, I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP. The aim is to... (1 Reply)
Discussion started by: sftpuser
1 Replies

5. Red Hat

User's home directory

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

6. Solaris

Home Directory for oracle user

Hello all, I am Installing Oracle 11g on my Solaris OS. I created the below oracle user: # /usr/sbin/useradd -g oinstall -G dba oracle but when i am trying to to su - oracle it give me the below error No directory Do i have to setup a home directory for oracle user? and how can i do... (1 Reply)
Discussion started by: beayni33
1 Replies

7. UNIX for Dummies Questions & Answers

Restricting a user to their home directory and below

I found this old closed thread: I can do these things, but how to I change someone's profile - where do I find the profile? I'm running Centos 5.6 ~~~~~~~~~ providing you have the password shell set to ksh, you can put this in his .profile: cd /opt/load alias -x cd=: (6 Replies)
Discussion started by: jjj0923
6 Replies

8. UNIX for Dummies Questions & Answers

User's home directory not being created

I am trying to create Oracle user. I will install oracle after that. But my problem is /home/oracle directory is not being created. bash-3.2# useradd -g oinstall -G dba,oper -d /home/oracle -m oracle cp: /home/oracle: Operation not applicable chown: /home/oracle: No such file or directory ... (3 Replies)
Discussion started by: hubatuwang
3 Replies

9. Shell Programming and Scripting

Trying to delete a user and home directory

Good Afternoon, I'm trying userdel -r username on Solaris 9 and getting UX: userdel: ERROR: unable to find status about home directory: No such file or directory I see the user's home directory and getent passwd shows the user Anybody know what's causing it? (2 Replies)
Discussion started by: Stellaman1977
2 Replies

10. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies
MAKEKDEDOC(1)						     KDOC Documentation System						     MAKEKDEDOC(1)

NAME
makekdedoc -- Generates HTML documentation for KDE libraries using KDOC. SYNOPSIS
makekdedoc [--rule-file=<rulefile>] [--libdir=<libdir>] [--outputdir=<outputdir>] [--url=<url>] [--srcdir=<kdelibs src dir>] [--kdoc=<path to kdoc>] [<library>...] makekdedoc --help DESCRIPTION
This is a perl script that uses KDOC to generate documentation for kdelibs. A "rule" file is used to figure out the libraries to document, the order in which to document them and the libraries with which each one will be cross-referenced (eg kdeui uses -lkdecore). See "FILES" for more info. NOTE: The script assumes that you have already generated a Qt cross-reference using qt2kdoc[1]. OPTIONS
Defaults for each option are in square brackets. library... Specify the libraries to document. By default, all libraries defined by the rule file are documented. --outputdir <path>, -d <path> The directory where the output will be written. [`cwd`/srcdoc] --url <url>, -u <url> The base URL by which the generated docs will be accessed. For example, if your web server is configured to use $HOME/public_html for your home page, you could set the outputdir to $HOME/public_html/srcdoc and the url to http://myhost/~mylogin/srcdoc. [output dir] --rule-file <path>, -r <path> The path to the rule file to use for generating the documentation. [<srcdir>/kdoc.rules] --libdir <path>, -L <path> The directory in which the KDOC cross-reference files are stored. [$KDOCLIBS if set, otherwise $HOME/.kdoc] --kdoc <path>, -k <path> The path to the kdoc program. [kdoc] --kdocopt <options>, -p <options> Extra options to be passed to kdoc. --srcdir <path>, -b <path> The path to the kdelibs source, eg "$HOME/baseline/kdelibs". [`cwd`] --help, -h Quit with a usage message. EXAMPLES
makekdedoc --srcdir $HOME/baseline/kdelibs --outputdir $HOME/public_html/src/kdelibs/ --url "http://www.ph.unimelb.edu.au/~ssk/src/kdelibs" FILES
Rule file This file lists the directories in the source directory to document. It also lists the files to document from each directory, and the libraries with which to cross-reference the generated documentation. Here is a small example that documents two libraries and links the second to the first. # makekdedoc rule file doc_MODULES = eenie meenie # rules for eenie eenie_FILES = *.h eenie_LIBS = -lqt # rules for meenie meenie_FILES = a.h b.h meenie_LIBS = -leenie -lqt In this example, all files in "eenie/*.h" will be documented then two files from "meenie/" will be documented, in the order declared in "doc_MODULES". SEE ALSO
See kdoc[1] and qt2kdoc[1]. VERSION
makekdedoc $Revision: 1.2 $ AUTHOR
The script and this documentation were written by Sirtaj Singh Kang <taj@kde.org> in April 1999. 2.0a54 2000-10-10 MAKEKDEDOC(1)
All times are GMT -4. The time now is 05:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy