Sponsored Content
Full Discussion: Help with Samba please!
Top Forums UNIX for Dummies Questions & Answers Help with Samba please! Post 302918710 by mgreen81 on Thursday 25th of September 2014 06:38:47 AM
Old 09-25-2014
Help with Samba please!

I am having a nightmare getting a new Solaris server to join a domain in order to access some samba shares.

I am a newbie to Unix so am learning as I go.

Every time I try the net ads join -U administrator command, I get:

Code:
# net ads join -U administrator
Enter administrator's password:
[2014/09/25 08:29:27.672173, 0] libads/kerberos.c:333()
kerberos_kinit_password administratoratINTERNAL.OURDOMAIN.COM failed: Preauthentication failed
Failed to join domain: failed to connect to AD: Preauthentication failed

Here is my smb.conf:
Code:
[global]
	workgroup = OURDOMAIN
	realm = INTERNAL.OURDOMAIN.COM
	server string = Maginus SUN2014, Samba %v
	interfaces = 172.XX.X.X
	security = ADS
	password server = *
	server signing = auto
  	client signing = auto
	map to guest = Bad Password
	guest account = web
	preferred master = Auto
	wins server = 172.XX.X.X, 172.XX.X.X, 172.XX.X.X
	idmap uid = 10000-20000
	idmap gid = 10000-20000
	template shell = /bin/bash
	winbind enum users = Yes
	winbind enum groups = Yes

[home_report]
	comment = Home Report for Res Bulk Pick Lists
	path = /home/report
	guest only = Yes
	guest ok = Yes


My krb5.conf

Code:
[libdefaults]
        default_realm = INTERNAL.OURDOMAIN.COM

[realms]
        INTERNAL.OURDOMAIN.COM = {
                kdc = DC1.INTERNAL.OURDOMAIN.COM
                kdc = DC2.INTERNAL.OURDOMAIN.COM
                kdc = DC3.INTERNAL.OURDOMAIN.COM              
                admin_server = DC1.INTERNAL.OURDOMAIN.COM
        }

[domain_realm]
	OURDOMAIN = INTERNAL.OURDOMAIN.COM

[logging]
        default = FILE:/var/krb5/kdc.log
        kdc = FILE:/var/krb5/kdc.log
	kdc_rotate = {

# How often to rotate kdc.log. Logs will get rotated no more
# often than the period, and less often if the KDC is not used
# frequently.

		period = 1d

# how many versions of kdc.log to keep around (kdc.log.0, kdc.log.1, ...)

		versions = 10
	}

[appdefaults]
	kinit = {
		renewable = true
		forwardable= true
	}
	gkadmin = {
		help_url = http://docs.sun.com:80/ab2/coll.384.1/SEAM/@AB2PageView/1195
	}

Your help is really appreciated!

---------- Post updated at 05:38 AM ---------- Previous update was at 05:20 AM ----------

Thanks for the edit Scrutinizer (I cant PM you)

Last edited by Scrutinizer; 09-25-2014 at 07:29 AM.. Reason: Additional code tags
 

9 More Discussions You Might Find Interesting

1. Programming

Samba 2.2.4

Has any setup samba 2.2.4 inside of unix ver 11.0, i am trying to mount a nfs mount on a w2k, and wxp box, and i was told that i had to upgrade to sambe 2.2.4, but the c compiler on ver 11.0 isnt ansii compatable, I could please use any help or directions on this matter... thanks (0 Replies)
Discussion started by: marvin51796
0 Replies

2. UNIX for Dummies Questions & Answers

Need Samba Help

Hi, I am very new to Unix, do know some RedHat linux. I am wanting to install samba on my unix machine. Not sure where to start, any help would be very much appreciated. Thanks, Chris Lewis (4 Replies)
Discussion started by: lewy33
4 Replies

3. UNIX for Dummies Questions & Answers

Why use Samba?

Hi, I am sorry I am total dummy in Unix. I am starting to explore a thing call "Samba". From my initial and rough finding, I think Samba is only useful in providing Print services to PC platform users. That is to say, The Unix machine which has Samba installed, is able to provide print... (3 Replies)
Discussion started by: champion
3 Replies

4. Solaris

SAMBA - where?

Greetings.. I need SAMBA to implement a backup strategy , the problem is that i cant find it anywhere... can u guys gimme a link to a sun compatilble version of samba ? thanx thanx htanx..... :rolleyes: (3 Replies)
Discussion started by: nEuRoMaNcEr
3 Replies

5. UNIX for Dummies Questions & Answers

Samba help

Hey. I have a question about adding users and maping theirs dirictorys. Main Folder | -User1 Folder -User2 Folder -User3 Folder ...... How can I add this users to have folders in the Main Folder ? any simple script? And I... (0 Replies)
Discussion started by: net555
0 Replies

6. UNIX for Dummies Questions & Answers

Samba

after creating username/passwd, vi /usr/lib/smb.conf file comment = dropoff location path = /tmp/droloc browsable = No available = yes public = no writable = yes printable = no create mode = 777 valid users = tjmann,palexander,bmartin,.... instead of using... (2 Replies)
Discussion started by: tjmannonline
2 Replies

7. UNIX for Dummies Questions & Answers

SAMBA

currently, we are using SAMBA for our ftp way. can SAMBA be encrypted aka sftp ? (2 Replies)
Discussion started by: lawsongeek
2 Replies

8. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

9. Ubuntu

Samba Help

All; I've done this before, but sure I'm typing in the wrong search terms, so not finding the help I need. What I have to do: Set up Samba, smb.conf, smbclient, fstab and all other settings so I see both the Windows and Linux servers and their shares in the network, via Samba. It's... (19 Replies)
Discussion started by: TBotNik
19 Replies
samba_selinux(8)					Samba Selinux Policy documentation					  samba_selinux(8)

NAME
samba_selinux - Security Enhanced Linux Policy for Samba DESCRIPTION
Security-Enhanced Linux secures the Samba server via flexible mandatory access control. FILE_CONTEXTS SELinux requires files to have an extended attribute to define the file type. Policy governs the access daemons have to these files. If you want to share files other than home directories, those files must be labeled samba_share_t. So if you created a special directory /var/eng, you would need to label the directory with the chcon tool. chcon -t samba_share_t /var/eng To make this change permanent (survive a relabel), use the semanage command to add the change to file context configuration: semanage fcontext -a -t samba_share_t "/var/eng(/.*)?" This command adds the following entry to /etc/selinux/POLICYTYPE/contexts/files/file_contexts.local: /var/eng(/.*)? system_u:object_r:samba_share_t:s0 Run the restorecon command to apply the changes: restorecon -R -v /var/eng/ SHARING FILES
If you want to share files with multiple domains (Apache, FTP, rsync, Samba), you can set a file context of public_content_t and pub- lic_content_rw_t. These context allow any of the above domains to read the content. If you want a particular domain to write to the pub- lic_content_rw_t domain, you must set the appropriate boolean. allow_DOMAIN_anon_write. So for samba you would execute: setsebool -P allow_smbd_anon_write=1 BOOLEANS
SELinux policy is customizable based on least access required. So by default SELinux policy turns off SELinux sharing of home directories and the use of Samba shares from a remote machine as a home directory. If you are setting up this machine as a Samba server and wish to share the home directories, you need to set the samba_enable_home_dirs boolean. setsebool -P samba_enable_home_dirs 1 If you want to use a remote Samba server for the home directories on this machine, you must set the use_samba_home_dirs boolean. setsebool -P use_samba_home_dirs 1 system-config-selinux is a GUI tool available to customize SELinux policy settings. AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>. SEE ALSO
selinux(8), samba(7), chcon(1), setsebool(8), semanage(8) dwalsh@redhat.com 17 Jan 2005 samba_selinux(8)
All times are GMT -4. The time now is 02:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy