01-03-2012
Hey christer, thanks...It has worked for me and i am done with my work...It really helped
---------- Post updated at 12:35 AM ---------- Previous update was at 12:31 AM ----------
Thank you very much you all....:-)
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
How do I remove a directory named: $HOME
$ rm "$HOME"
rm: $HOME is a directory
$ rmdir "$HOME"
rmdir: directory "/home/bob": Directory is a mount point or in use (4 Replies)
Discussion started by: natter
4 Replies
2. UNIX for Dummies Questions & Answers
I created a new user and assigned a certain home dir to tis user. I've noticed that this home dir (/export/home/test) is already assigned to other users. I really want to create a dedicated home dir for the new user. Can anyone tell me how I can modify this user with a new homedir?
Thx for... (4 Replies)
Discussion started by: kris_devis
4 Replies
3. UNIX for Dummies Questions & Answers
Hi
I am trying to display the home directory of another user. I dont have the permissions to change into their directory and wonder is it possible to display their directory
eg I cant change directory to john but I am trying to display something like /home/John.
If anyone can help I would... (3 Replies)
Discussion started by: mmg2711
3 Replies
4. Solaris
Hello,
i need to create a user who's access is restricted only to his home directory and below,
i restricted his pty access by adding 'no-pty' to the options of the ssh key in authorized_keys file. However, sftp access still allows this user access to all my file system
thanks (5 Replies)
Discussion started by: lidram
5 Replies
5. UNIX for Dummies Questions & Answers
Hi!
i'm using FreeBSD 6.2 and hosting my pc to frens
in particular of sensitive information being saved to the PC, i would like to know is it possible for me to restrict user access to their /home dir. only?
and also, i wanted to restrict them listing files under /etc
thanks all! (10 Replies)
Discussion started by: rdns
10 Replies
6. UNIX for Dummies Questions & Answers
I created a new user and changed their home directory to /export/home/mydir/ I verified in the passwd file that the home directory is set to the above and that owner of that directory is the new user and yet when I log in as that user I get the following message:
No directory! Logging in with... (14 Replies)
Discussion started by: some_one
14 Replies
7. AIX
Hello there
Have anyone configured an AIX 5L machine as NIS client? with homedirectories automounted form an NFS share?
The NIS server is running Solaris. I am able to configure the AIX machine as client and user is able to login but
I have configured the client to use the automountd... (0 Replies)
Discussion started by: balaji_prk
0 Replies
8. Linux
Hi Friends,
I have installed a FTP Server on my Linux machine (Fedora 11).
I want the ftp users to be restricted to their own home dir using sftp.
But the said condition is met when the user logs in using ftp over port 21 and when the user logs in using sftp i.e. protocol 22, he/she has... (4 Replies)
Discussion started by: pashy
4 Replies
9. 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
10. 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
LEARN ABOUT OSF1
removeuser
removeuser(8) System Manager's Manual removeuser(8)
NAME
removeuser - Deletes user accounts interactively
SYNOPSIS
/usr/sbin/removeuser
DESCRIPTION
Security Note
If you have enhanced security installed on your system, you should use the dxaccounts command to remove users. See the Security manual and
the dxaccounts(8) reference page for more information.
The removeuser command is an interactive command for deleting user accounts from your system. It also gives the option of deleting the
user's home directory, files and mail. The command prompts you for specific information and informs you of its activity and error condi-
tions.
The removeuser command invokes /usr/sbin/userdel to delete the user account information from /etc/passwd and the hashed password database
(if present).
Only the superuser can execute this command.
The command performs the following tasks: Asks for a login name for the user to be deleted. Enter the login name. If this entry does not
exist in the /etc/passwd file, the command informs you of this and exits. If the entry does exist, the command continues. Displays the
entry for the user from the /etc/passwd file and asks if this is the entry you want to delete. If the answer to this query is no, the com-
mand indicates that the user was not deleted and then exits. If the answer to this query is yes, the command deletes the user's entry from
the /etc/passwd file and any occurrences of the user from the /etc/group file. It then states that the user was deleted. Searches several
administrative directories and files for occurrences of the user and informs you if they exist. If so, it suggests that you may want to
delete these occurrences when the command is finished. If no occurrences of the user are found in these directories and files, the command
indicates so. Asks if you want to delete the home directory, all subdirectories, and all mail files for the user. If the answer to this
query is no, the command indicates that the user's home directory was not deleted and then exits. If the answer to this query is yes, the
command continues.
As a precaution, the command reminds you that you should have backed up the files for the user before removing them if you do not
want to lose them. It then asks if you are sure that you want to delete the files for this user. If the answer to this query is
no, the command indicates that the user's home directory was not deleted and then exits. If the answer to this query is yes, the
command states that it is removing the user's home directory, its contents and the user's mail file. It then deletes these items.
At this point, the command ends.
NOTES
Users are advised to migrate to the /usr/sbin/userdel utility or the dxaccounts utility as this command may be removed in a future version
of the operating system.
EXAMPLES
Enter a login name to be removed or <Return> to exit: john This is the entry for (john) in the /etc/passwd file:
john:VSh6/xbMqPDcY:5006:15:sdf:/usr/users/john:
Is this the entry you want to delete (y/n)? y Working ... Entry for (john) removed. Searching relevant directories and files for (john)
... None found. Do you want to remove the home directory, all subdirectories, files, and mail for (john) (y/n)? y The files for (john)
will be lost if not backed up. Are you sure you want to remove these files (y/n)? y Deleting /usr/users/john Deleting
/usr/spool/mail/john
FILES
Specifies the command path Group file Password file
SEE ALSO
Commands: addgroup(8), adduser(8), dxaccounts(8), finger(1), mkpasswd(8), passwd(1), useradd(8), userdel(8), vipw(8)
Files: group(4), passwd(4)
removeuser(8)