Sponsored Content
Special Forums Windows & DOS: Issues & Discussions Script to automatically map samba shares as network drive Post 302495916 by stringman on Friday 11th of February 2011 03:01:00 PM
Old 02-11-2011
barrydocks,

The only way I know is to go to Local Security policy --> User Rights Assignment and set "Change System Time" to Administrators only. I have to leave now tp ick up my daughter, but I'm sure the registery setting for this can be found online.

Ken
 

10 More Discussions You Might Find Interesting

1. Solaris

Map Network Drive...

Hallo...Hi, Anyone can help me???How can I map network drive from Windows if i'm using the Sun Solaris 8 server? :confused: (1 Reply)
Discussion started by: mrboomber
1 Replies

2. IP Networking

How to enumerate samba shares with client

I have a samba server node and I want to mount the samba (CIFS) shares from a second (client) unix machine. However, the unix mount command requires I specify the name of the share. What if I don't know the name of the share? How can I enumerate all the shares from the samba client machine? ... (1 Reply)
Discussion started by: siegfried
1 Replies

3. UNIX for Dummies Questions & Answers

Map Drive From Windows To Apache Shared Drive?

Anyone know how I can map a windows drive to an apache shared drive? In my httpd.conf file, I have: Alias /merc_rpts/ "/u/merc_rpts/" <Directory "/u/merc_rpts"> Options Indexes </Directory> I'm able to bring up a browser and see the contents of this folder. In... (0 Replies)
Discussion started by: gseyforth
0 Replies

4. Shell Programming and Scripting

extraction of samba shares with sed

Hi there, My samba configuration file looks like that : ... ... path = /home/samba/profiles/ ... path = /home/samba/shares/family valid users = family path = /home/samba/shares/admins valid users = admins path = /home/samba/shares/publicI want to extract the list of standard... (3 Replies)
Discussion started by: chebarbudo
3 Replies

5. Linux

Auto map network drive using SAMBA with batch file

Hi everyone. I have several shares (see smb.conf below). Each setup fairly similarly, and several groups. My end goals are: 1) to have the share automatically map as the P: drive to members of the employees group 2) to have the share automatically map as the t: drive to members of the tech... (0 Replies)
Discussion started by: unassassinable
0 Replies

6. UNIX for Dummies Questions & Answers

Samba - Creating shares

So I have Samba installed on my server and I have to create two shares. Make a backup of your smb.conf - call it smb.conf.orig. Create a share called shared that allows read and write permissions for everyone and points to /media/shared. Create another share called www that points to the... (1 Reply)
Discussion started by: shadowcat
1 Replies

7. UNIX for Dummies Questions & Answers

Help mounting Samba shares

I have these two shares on my Ubuntu Server: path = /media/share read only = no guest ok = yes path = /var/www read only = noI want to mount them to the directories that I created on my Desktop called "shared" and "www" how do I do this? I ran the command: smbclient -L... (1 Reply)
Discussion started by: shadowcat
1 Replies

8. UNIX and Linux Applications

Copy numerous private Samba-shares as one user. (Syntax question)

Hello Forum, I was overwhelmed by how fast and correct the responses to my first question in this forum was, and I hope I expreience this again today. The reason is that I have to copy a fileserver (Ubuntu 8.04 32 with Samba) to another server via Internet within tomorrow. I have no problem... (0 Replies)
Discussion started by: primaxx
0 Replies

9. UNIX for Dummies Questions & Answers

Map network drive

Hi I need to restore an oracle backup from production in a test x86 Solaris 10 box . But the space is limited and does not have enough to hold both the backup as well as database . Hence , I am thinking of mapping a network drive from another x86 Solaris 10. Pls let me know if it is... (3 Replies)
Discussion started by: Rossdba
3 Replies

10. UNIX for Dummies Questions & Answers

Help with accessing Samba shares on external (NON-DOMAIN) webserver(s)

Hi all, You may have seen my recent topic, where I asked for help getting some samba shares to work on our network. Now that these are working, I move on to the next hurdle! We have a few externally hosted (Windows Server 2008 R2) web servers which are not on our domain, but can still... (0 Replies)
Discussion started by: mgreen81
0 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 12:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy