Operating System - Linux
1827620 Members
3256 Online
109966 Solutions
New Discussion

Re: other users are unable to open my samba share

 
vnykr
Advisor

other users are unable to open my samba share

i have configured my smb.conf.
when i use ...
smbclient -L 10.0.3.22
i am getting the share details and my server details. but when i try to mount my self using...
mount -t smbfs //server/sharename /mountpt i am unable to mount and it is giving some error in share name ..etc..

here i am pasting my share definitions...
what modifications i have to do??
and one more question is can't i browse the LAN for available hosts to access their shares??

#=====Share Definitions=====
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
password server = None
security = SHARE
winbind use default domain = no
[homes]
comment = Home Directories
browseable = yes
writeable = yes

[Movies]
path = /root/Desktop/e/Movies
guest ok = yes

[Songs]
path = /root/Desktop/e/Songs
guest ok = yes

[ebooks]
path = /root/ebooks
guest ok = yes
8 REPLIES 8
Ivan Ferreira
Honored Contributor

Re: other users are unable to open my samba share

1- Some linux distro don't support the mount -t smbfs option and the command:

mount -t cifs

Should be used instead.

2- You are sharing directories under the /root directory. The /root directory is very restricted talking about permissions. You should use another directory for data sharing.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
vnykr
Advisor

Re: other users are unable to open my samba share

hi,
thanx for ur reply.i will try to keep those share directories in other than root.thats Ok

but the problem is other windows and linux users r not able to access my shares.they r not even able to see my shares.
i have given the details i have enterd in smb.conf file above. pls
check them and tell me any modifications r required
Ivan Ferreira
Honored Contributor

Re: other users are unable to open my samba share

I need:
The full smb.conf file.
The results of the testparm command.
The results of the smbclient -L //servername -N
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
vnykr
Advisor

Re: other users are unable to open my samba share

hi,
i am attaching my smb.conf file

here r my results u asked for...
my testparm results:
*********************************************
[root@localhost ~]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[share1]"
Processing section "[share2]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = MYGROUP
server string = Samba Server
security = SHARE
password server = None
log file = /var/log/samba/%m.log
max log size = 50
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
cups options = raw

[homes]
comment = Home Directories
read only = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[share1]
path = /home/vnykr
guest ok = Yes

[share2]
path = /home/vnykr
guest ok = Yes
*********************************************
my smbclient -L 10.0.3.22 results
**********************************
[root@localhost ~]# smbclient -L 10.0.3.22
Password:
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.8pre1-0.pre1.3]

Sharename Type Comment
--------- ---- -------
homes Disk Home Directories
share1 Disk
share2 Disk
IPC$ IPC IPC Service (Samba Server)
ADMIN$ IPC IPC Service (Samba Server)
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.8pre1-0.pre1.3]

Server Comment
--------- -------
LOCALHOST Samba Server

Workgroup Master
--------- -------
MYGROUP
*******************************************
when i tried to mount my own share myself with
mount -t smbfs //10.0.3.22/share1 /home/vnykr/Desktop/c
i am able to mount..but nothing is shown in that dir ..i mean it is giving as follows...
******************************************
[root@localhost ~]# mount -t smbfs //10.0.3.22/share1 /home/vnykr/Desktop/c
Password:
[root@localhost ~]# cd /home/vnykr/Desktop/c
[root@localhost c]# ls
ls: .: Permission denied


Steven E. Protter
Exalted Contributor

Re: other users are unable to open my samba share

Shalom,

try server = security

workgroup = mygroup


Is the group the actual workgroup or domain name in your organization?

This needs to be fixed for windows clients to work right.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
vnykr
Advisor

Re: other users are unable to open my samba share

hi SEP,

actually my system is in LAN...
so
i donno exacltly what we have to specify for "workgroup"
thats Y i kept it as "Mygroup".
i have attached the smb.conf file in the above reply....
pls kindly check that and tell me what modifications i need to do ??

and u told that to use server=security
if at all we use dis option we have to use the passwd file.then it would be problem for me to tell the passwd to every one.i want the share to be "ananymous"
g33k
Valued Contributor

Re: other users are unable to open my samba share

the workgroup is just a local name so you can name it how you want(name of departmen which is sharing informations, name of company, it doesn't matter it's just local service).
But to have access from windows the station must be in that group...

for more info there is very easy to read howto http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/
Steven E. Protter
Exalted Contributor

Re: other users are unable to open my samba share

Shalom,

If there is a windows domain controller, then find out from the admin what the default domain or workgroup is.

Make sure the setting in smb.conf matches.

If there is not a central domain controller then make sure the workgroup settings in smb.conf match all the clients.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com