Samba is a free software re-implementation, originally developed by Australian Andrew Tridgell, of the SMB/CIFS networking protocol. As of version 3, Samba provides file and print services for various Microsoft Windows clients and can integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a domain member. It can also be part of an Active Directory domain.
Samba runs on most Unix and Unix-like systems, such as Linux, Solaris, AIX and the BSD variants, including Apple's Mac OS X Server(which was added to the Mac OS X client in version 10.2). Samba isstandard on nearly all distributions of Linux and is commonly includedas a basic system service on other Unix-based operating systems as well. Samba is released under the GNU General Public License. The name Samba comes from SMB (Server Message Block), the name of the standard protocol used by the Microsoft Windows network file system.
Here is the BASH SCRIPT that can .....
Why should i must explain about the action of that script, you can also check/execute it.
#!/bin/bash
# Add the group using normal system groupadd tool.
groupadd smbtmpgrp00
thegid=`cat /etc/group | grep ^smbtmpgrp00 | cut -d ":" -f3`
# Now change the name to what we want for the MS Windows networking end
cp /etc/group /etc/group.bak
cat /etc/group.bak | sed "s/^smbtmpgrp00/$1/g" > /etc/group
rm /etc/group.bak
# Now return the GID as would normally happen.
echo $thegid
exit 0
So, what did you think about that SCRIPT....
Let me know via COMMENT
0 comments:
Post a Comment