Sponsored Content
Full Discussion: Logon script
Top Forums UNIX for Dummies Questions & Answers Logon script Post 302098592 by capeme on Tuesday 5th of December 2006 09:41:16 AM
Old 12-05-2006
Logon script

Hi:
I am wondering if anyone has a logon script to be put in /etc/profile or environments that will display the logged on username and path?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can't logon

I stupidly changed the shell of the root user to one that does not exist, and now when I try to lgon it says it cannot find the path to my shell and will not let me proceed any further. Is there any way I can get round this without re-installing the OS? Thanks for any replies. (8 Replies)
Discussion started by: SRP
8 Replies

2. AIX

umask setting on a logon script

hi, am new to AIX. i have an issue. iam asked to change the umask setting on a logon script on a server to prevent writable files. i logged in as the root user and typed in umask and it displays 022, which i believe is 755 for direc and 644 for files. 1) how to I identify where the logon script... (2 Replies)
Discussion started by: karthikosu
2 Replies

3. Shell Programming and Scripting

About Logon

hi how can I know abt the details of current user who are logged on and as well as those users who currently have an account but are not logged on? Thanks (1 Reply)
Discussion started by: nokia1100
1 Replies

4. UNIX for Dummies Questions & Answers

UNIX logon script/batch

Hi everyone, I am a newbies to Unix and hope someone can help me on: 1. Do anyone has batch file example that can be logon to a unix sever through telnet and exec a nohup command without typing in username and passward everytime ? 2. A java script exmaple for doing the same logon so it... (1 Reply)
Discussion started by: oht
1 Replies

5. Shell Programming and Scripting

How to script to logon servers using id and password

Hey.. I am new in scripting.. I know a little bit of scripting.. I am facing some problem.. I need to create a script using which I may log on to a server (e.g. ftp) with ID and password.. thus copy a particular file to a local dir.. the commands required to do that I do know.. I am able to do it... (1 Reply)
Discussion started by: razeeev
1 Replies

6. Shell Programming and Scripting

Logon profile kill script only partially working

I have been having an issue with the new motorola rf scan guns opening up too many sessions at once. It seems they will open a new connection for no reason, leaving the old one in the background and the user has no idea it is happening. To combat this, I have added the following code to the logon... (1 Reply)
Discussion started by: raidzero
1 Replies

7. AIX

aix logon

how do I create a script to logon to db2inst1 with a password , then issue db2 command :( (5 Replies)
Discussion started by: trekme
5 Replies

8. Shell Programming and Scripting

Logon/Logoff script

I need help for writing a logon/logoff script for recording user's computer usage time. This is for local login only, not for ssh or something like that. When a user logon, there should be a temp file (/home/acct/login_temp) generated including the logname and logon time information in the... (8 Replies)
Discussion started by: jimx
8 Replies

9. Post Here to Contact Site Administrators and Moderators

Cannot logon using elinks

There are some computers in the firm that have no GUI, so I use elinks (ELinks - Full-Featured Text WWW Browser) to access the internet. However, logging onto the unix.com forums is not possible, because the page hangs at "Thank you for logging onto the forums, " There is also a line "Please click... (6 Replies)
Discussion started by: figaro
6 Replies

10. Shell Programming and Scripting

Find logon user based on executed script proc id

Hi, i have requirement to find logged in user based on process id. i have below scenario. 1. all my users will logon to unix box using ssh from windows system. 2. after successful logon they will sudo to common user. ex. sudo -su edadm lot of users are executing jobs from edadm user and... (2 Replies)
Discussion started by: tmalik79
2 Replies
PDBEDIT(8)																PDBEDIT(8)

NAME
pdbedit - manage the SAM database SYNOPSIS
pdbedit [ -l ] [ -v ] [ -w ] [ -u username ] [ -f fullname ] [ -h homedir ] [ -d drive ] [ -s script ] [ -p profile ] [ -a ] [ -m ] [ -x ] [ -i file ] DESCRIPTION
This tool is part of the Samba suite. The pdbedit program is used to manage the users accounts stored in the sam database and can be run only by root. The pdbedit tool use the passdb modular interface and is independent from the kind of users database used (currently there are smbpasswd, ldap, nis+ and tdb based and more can be addedd without changing the tool). There are five main ways to use pdbedit: adding a user account, removing a user account, modifing a user account, listing user accounts, importing users accounts. OPTIONS
-l This option list all the user accounts present in the users database. This option prints a list of user/uid pairs separated by the ':' character. Example: pdbedit -l sorce:500:Simo Sorce samba:45:Test User -v This option sets the verbose listing format. It will make pdbedit list the users in the database printing out the account fields in a descriptive format. Example: pdbedit -l -v --------------- username: sorce user ID/Group: 500/500 user RID/GRID: 2000/2001 Full Name: Simo Sorce Home Directory: \BERSERKERsorce HomeDir Drive: H: Logon Script: \BERSERKER etlogonsorce.bat Profile Path: \BERSERKERprofile --------------- username: samba user ID/Group: 45/45 user RID/GRID: 1090/1091 Full Name: Test User Home Directory: \BERSERKERsamba HomeDir Drive: Logon Script: Profile Path: \BERSERKERprofile -w This option sets the "smbpasswd" listing format. It will make pdbedit list the users in the database printing out the account fields in a format compatible with the smbpasswd file format. (see the smbpasswd(5) for details) Example: pdbedit -l -w sorce:500:508818B733CE64BEAAD3B435B51404EE:D2A2418EFC466A8A0F6B1DBB5C3DB80C:[UX ]:LCT-00000000: samba:45:0F2B255F7B67A7A9AAD3B435B51404EE:BC281CE3F53B6A5146629CD4751D3490:[UX ]:LCT-3BFA1E8D: -u username This option specifies that the username to be used for the operation requested (listing, adding, removing) It is required in add, remove and modify operations and optional in list operations. -f fullname This option can be used while adding or modifing a user account. It will specify the user's full name. Example: -f "Simo Sorce" -h homedir This option can be used while adding or modifing a user account. It will specify the user's home directory network path. Example: -h "\\BERSERKER\sorce" -d drive This option can be used while adding or modifing a user account. It will specify the windows drive letter to be used to map the home directory. Example: -d "H:" -s script This option can be used while adding or modifing a user account. It will specify the user's logon script path. Example: -s "\\BERSERKER\netlogon\sorce.bat" -p profile This option can be used while adding or modifing a user account. It will specify the user's profile directory. Example: -p "\\BERSERKER\netlogon" -a This option is used to add a user into the database. This command need the user name be specified with the -u switch. When adding a new user pdbedit will also ask for the password to be used Example: pdbedit -a -u sorce new password: retype new password -m This option may only be used in conjunction with the -a option. It will make pdbedit to add a machine trust account instead of a user account (-u username will provide the machine name). Example: pdbedit -a -m -u w2k-wks -x This option causes pdbedit to delete an account from the database. It need the username be specified with the -u switch. Example: pdbedit -x -u bob -i file This command is used to import a smbpasswd file into the database. This option will ease migration from the plain smbpasswd file database to more powerful backend databases like tdb and ldap. Example: pdbedit -i /etc/smbpasswd.old NOTES
This command may be used only by root. VERSION
This man page is correct for version 2.2 of the Samba suite. SEE ALSO
smbpasswd(8) samba(7) AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter 19 November 2002 PDBEDIT(8)
All times are GMT -4. The time now is 10:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy