LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-24-2015, 04:56 AM   #46
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 10

Sorry it was a Misspelling, I mean is "internal domain name/realm name".
I changed "smb.conf" like below :

[test]
path = /home/jason/test
valid users = jason
read only = No

And when I want to open "test" it ask me username and password and repeat it but when I use "SFTP" for open it , Its work correctly and "jason" user can read and write but other users with "SFTP" just can read "test".

What is the problem? I want my Windows users open on my directory and they can't use SFTP
 
Old 04-24-2015, 05:33 AM   #47
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
Change valid users= jason to
valid users = domain\linux

Here domain should be leftmost portion of ur FQDN
for example: qa.example.local
here "qa" is my domain so i would use
Valid users = qa\username or qa\group name
to alloe to write to share add
write list = qa\username or qa\groupname
 
Old 04-25-2015, 12:23 AM   #48
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 10
Thank you.
I did it and it worked very nice with SSH and not Explorer in Linux and Windows.
When In Linux I use SSH for connect it worked very nice and in windows via SSH too but When I browse it via Nautilus or Windows explorer It ask me username and password and repeat it.
What is your idea?
 
Old 04-25-2015, 02:25 AM   #49
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
SSH and samba are completly different protocols
You have to review the settings of smb.conf file for share while specifying AD users to allow access,where i think u have problems.
If u are using domain users to login from windows box it should allow direct access to the share.
pls post ur log files.
 
Old 04-25-2015, 03:49 AM   #50
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 10
My debug settings are :

# Debug logging information
log level = 2
log file = /var/log/samba.log.m
max log size = 50
debug timestamp = yes

And logs are :

[root@printmah log]# cat samba.log.winbindd
[2015/04/25 13:15:50.686814, 2] ../source3/param/loadparm.c:543(max_open_files)
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
[2015/04/25 13:15:50.687361, 2] ../source3/lib/interface.c:341(add_interface)
added interface enp0s3 ip=172.30.10.32 bcast=172.30.10.63 netmask=255.255.255.192
[2015/04/25 13:15:50.687547, 2] ../source3/lib/interface.c:341(add_interface)
added interface enp0s3 ip=172.30.10.32 bcast=172.30.10.63 netmask=255.255.255.192
[2015/04/25 13:15:50.745239, 1] ../source3/lib/tdb_validate.c:480(tdb_validate_and_backup)
tdb '/var/lib/samba/winbindd_cache.tdb' is valid
[2015/04/25 13:15:50.822539, 1] ../source3/lib/tdb_validate.c:490(tdb_validate_and_backup)
Created backup '/var/lib/samba/winbindd_cache.tdb.bak' of tdb '/var/lib/samba/winbindd_cache.tdb'
[2015/04/25 13:15:50.822804, 2] ../source3/winbindd/winbindd_util.c:255(add_trusted_domain)
Added domain BUILTIN (null) S-1-5-32
[2015/04/25 13:15:50.822825, 2] ../source3/winbindd/winbindd_util.c:255(add_trusted_domain)
Added domain PRINTMAH (null) S-1-5-21-2541196549-2125853042-4012361048
[2015/04/25 13:15:50.822962, 2] ../source3/winbindd/winbindd_util.c:255(add_trusted_domain)
Added domain JASONDOMAINI JASONDOMAIN.JJ S-1-5-21-3570103376-2371597222-4282842042
[2015/04/25 13:15:50.823544, 0] ../lib/util/become_daemon.c:136(daemon_ready)
STATUS=daemon 'winbindd' finished starting up and ready to serve connectionsAdded domain ADVER adver.JASONDOMAIN.JJ S-1-5-21-1472177942-2601914714-575203747
[2015/04/25 13:15:58.867287, 2] ../source3/libsmb/cliconnect.c:1312(cli_session_setup_kerberos_send)
Doing kerberos session setup


Why it asked my username and password and repeat it?[COLOR="Silver"]

Last edited by hack3rcon; 04-25-2015 at 03:51 AM.
 
Old 04-26-2015, 12:03 AM   #51
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 10
Have Samba any special option about Browsing?
 
Old 05-12-2015, 07:04 AM   #52
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 10
Any idea?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Samba share can't write in linux, can in Windows xmrkite Linux - Software 1 09-17-2012 12:14 PM
creating files from windows on a samba share gives read-only permissions. lievendp Linux - General 5 12-17-2008 10:55 AM
Access linux SAMBA share from windows pengu Linux - Software 6 02-17-2007 11:55 AM
samba - accessing windows share in linux mikeotieno Linux - Software 7 07-28-2006 06:12 AM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration