Mount with no mandatory filesystem locks:
mount -t cifs //164.88.15.27/imagedata /mnt/imagedata/ -o user=administrator,pass=hpinvent,rw,soft,nobrl
or try with -o nomand
Add a quick samba share:
yum install cups-libs samba samba-common
mkdir -p /home/shares/allusers
chown -R root:users /home/shares/allusers/
chmod -R ug+rwx,o+rx-w /home/shares/allusers/
vi /etc/samba/smb.conf
security = user
passdb backend = tdbsam
[allusers]
comment = All Users
path = /home/shares/allusers
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes
chkconfig --levels 235 smb on
/etc/init.d/smb start
testparm
useradd storage -m -G users
passwd storage
smbpasswd -a storage
From other box:
mkdir /mnt/imagedatanew
mount -t cifs //164.88.15.156/allusers /mnt/imagedatanew/ -o user=storage
When Desktop.ini keeps popping up
Put this into the smb.conf >
hide files = /Desktop.ini/desktop.ini/ntuser.ini/NTUSER.*/
pdbedit can be used to check if the root account is locked and change settings etc
Check user exists
id username
Check the samba configs (basically parses the /etc/samba/smb.conf)
testparm
-from here you can see which groups have access to each share
-also if the forcegroup = +sales is set than the sticky bit does not need setting on the folder and
the sales group has access
List the (browseable) shares on a server
smbclient -L //server/share -U username
or
smbclient -L localhost and press enter when prompted for a password
or
smbclient //localhost/Sales\ And\ Marketing\ Department -U joeym for share with spaces
Add a new Samba user
useradd username
smbpasswd -a username
vigr to put them in the right group