Dear All,
i have configured a samba server where i have configured it for /mnt dir to be exported/shared.
when i verify this share, i see mnt dir but i want the content inside the mnt to be visible or chroot into mnt directly.
thanks,
Dear All,
i have configured a samba server where i have configured it for /mnt dir to be exported/shared.
when i verify this share, i see mnt dir but i want the content inside the mnt to be visible or chroot into mnt directly.
thanks,
So, I do not know what you have mounted in /mnt but the problem is most likely your Samba version. Check your samba version and if it is at or around version “3.4.3-3.3.1” I would downgrade it back to “3.4.2-1.1.3.1”. There is a bug in the newer versions of Samba which does not work properly. The change was made for security reasons, but the patient dies. I suggest you go to Software Management and search on Samba (include Description in the search so you will get the cifs file). On the first program found, go to the versions tab. Change the version to 3.4.2-2.3.1 from repository openSUSE-Oss, picking the 32 or 64 bit to match your openSUSE version. Do this for all matches and then press accept. If the “3.4.2-1.1.3.1” version of Samba is not present, then leave the file unchanged. I normally go back in and do the search again, but this time for each file you down graded, I put a protected symbol on it so it will not be upgraded in the future. I have 16 Samba files total that had to be downgraded, but I have both 64 and 32 bit versions loaded.
So, just what is in your /mnt folder that you want to share? Mine is blank and when I plug in a new drive, it goes to /media not /mnt.
Thank You,
but i do not want the user to change dir to /mnt manually, instead i want the user to automatically lie/drop into /mnt itself.
Regards,
Ghulam Yaseen
On Wed April 28 2010 12:46 am, ghulamyaseen wrote:
>
> but i do not want the user to change dir to /mnt manually, instead i
> want the user to automatically lie/drop into /mnt itself.
>
>
> Regards,
> Ghulam Yaseen
>
>
Ghulam Yaseen;
Can you post the contents of /etc/samba/smb.conf ? You may use substitute
values to conceal any confidential information such as private IPs.
What kind of media do you have mounted at /mnt ?
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
/mnt is an example only, why should i click on mnt folder when access share from windows. why not i directly get access to /mnt folder. there should be fix to it!
Below is the important config options that i am using foor samba,
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
; netbios name = MYSERVER
; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.
# logs split per machine
; log file = /var/log/samba/%m.log
# max 50KB per log file, then rotate
; max log size = 50
security = user
passdb backend = tdbsam
; security = domain
; passdb backend = tdbsam
; realm = MY_REALM
; password server = <NT-Server-Name>
; security = user
; passdb backend = tdbsam
; domain master = yes
; domain logons = yes
# the login script name depends on the machine name
; logon script = %m.bat
# the login script name depends on the unix user used
; logon script = %u.bat
; logon path = \%L\Profiles%u
# disables profiles support by specifing an empty path
; logon path =
; add user script = /usr/sbin/useradd “%u” -n -g users
; add group script = /usr/sbin/groupadd “%g”
; add machine script = /usr/sbin/useradd -n -c “Workstation (%u)” -M -d /nohome -s /bin/false “%u”
; delete user script = /usr/sbin/userdel “%u”
; delete user from group script = /usr/sbin/userdel “%u” “%g”
; delete group script = /usr/sbin/groupdel “%g”
; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes
; dns proxy = yes
load printers = yes
cups options = raw
disable spoolss = yes
[backup]
comment = Backup User
path = /xxx.xx/backup
valid users = backup-db
writable = no
Just for clarity, I took out all the comments from that imported smb.conf and here are the real contents:
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
disable spoolss = Yes
cups options = raw[backup]
comment = Backup User
path = /xxx.xx/backup
valid users = backup-db
writable = no
Is this the problem: you can see the resource “backup” on the LAN but when you click to enter it you are refused entry? Describe what actually happens, describe the problem?
On Wed April 28 2010 07:56 am, swerdna wrote:
>
> Just for clarity, I took out all the comments from that imported
> smb.conf and here are the real contents:
>> [global]
>> workgroup = MYGROUP
>> server string = Samba Server Version %v
>> disable spoolss = Yes
>> cups options = raw
>>
>> [backup]
>> comment = Backup User
>> path = /xxx.xx/backup
>> valid users = backup-db
>> writable = no
>
> Is this the problem: you can see the resource “backup” on the LAN but
> when you click to enter it you are refused entry? Describe what actually
> happens, describe the problem?
>
Ghulam Yaseen;
In addition to the questions of Swerdna, can you be a bit more clear
what “xxx.xx” points to? Is this the name of a directory contained in your
root directory? Is the file system there local?
(I guess your use of the example /mnt, makes me think that this may be a file
system mounted from a different machine.)
The valid users parameter you have set, gives access to the share only to the
user that validates on Samba as “backup-db”. The user gyassen, for example
will be denied access. You can check how users validate on Samba as
follows:
Add this parameter to the [Global] section of /etc/samba/smb.conf:
log level = 1 auth:3
Restart Samba and then authentication will be logged
in /var/log/samba/log.smbd
–
P. V.
“We’re all in this together, I’m pulling for you.” Red Green