Jump to content

Samba share issues

TBBZ8X8

Ok so I am sharing files on an ubuntu server via samba. My problem is windows 10 rejects my main user when I login to the server even they are a sudoer and I have added them to the samba list using the smbpasswd -a -G USERNAME command. It only accepts the second account I created who is also a sudoer and in the samba list of acceptable users. I am using plex to share the video files I am putting into it but since the movies were already there when I mounted the partition they belong to the main user. This means that plex cannot access any of the files that the secondary user adds because I installed it under the main user. 

 

They are also both in a sudoer group that I think I properly added to samba.

 

please help I have no idea where to go from here .

Link to comment
Share on other sites

Link to post
Share on other sites

If I recall correctly you need to have the users accessing th file added as a valid user in the smb.conf file, so make sure about that.

Make sure to quote me or tag me when responding to me, or I might not know you replied! Examples:

 

Do this:

Quote

And make sure you do it by hitting the quote button at the bottom left of my post, and not the one inside the editor!

Or this:

@DocSwag

 

Buy whatever product is best for you, not what product is "best" for the market.

 

Interested in computer architecture? Still in middle or high school? P.M. me!

 

I love computer hardware and feel free to ask me anything about that (or phones). I especially like SSDs. But please do not ask me anything about Networking, programming, command line stuff, or any relatively hard software stuff. I know next to nothing about that.

 

Compooters:

Spoiler

Desktop:

Spoiler

CPU: i7 6700k, CPU Cooler: be quiet! Dark Rock Pro 3, Motherboard: MSI Z170a KRAIT GAMING, RAM: G.Skill Ripjaws 4 Series 4x4gb DDR4-2666 MHz, Storage: SanDisk SSD Plus 240gb + OCZ Vertex 180 480 GB + Western Digital Caviar Blue 1 TB 7200 RPM, Video Card: EVGA GTX 970 SSC, Case: Fractal Design Define S, Power Supply: Seasonic Focus+ Gold 650w Yay, Keyboard: Logitech G710+, Mouse: Logitech G502 Proteus Spectrum, Headphones: B&O H9i, Monitor: LG 29um67 (2560x1080 75hz freesync)

Home Server:

Spoiler

CPU: Pentium G4400, CPU Cooler: Stock, Motherboard: MSI h110l Pro Mini AC, RAM: Hyper X Fury DDR4 1x8gb 2133 MHz, Storage: PNY CS1311 120gb SSD + two Segate 4tb HDDs in RAID 1, Video Card: Does Intel Integrated Graphics count?, Case: Fractal Design Node 304, Power Supply: Seasonic 360w 80+ Gold, Keyboard+Mouse+Monitor: Does it matter?

Laptop (I use it for school):

Spoiler

Surface book 2 13" with an i7 8650u, 8gb RAM, 256 GB storage, and a GTX 1050

And if you're curious (or a stalker) I have a Just Black Pixel 2 XL 64gb

 

Link to comment
Share on other sites

Link to post
Share on other sites

23 minutes ago, Electronics Wizardy said:

what is the permissions of the folder you are shareing?

Permissions are 0775

20 minutes ago, Electronics Wizardy said:

is selinux on?

No clue what that is

Link to comment
Share on other sites

Link to post
Share on other sites

23 minutes ago, DocSwag said:

If I recall correctly you need to have the users accessing th file added as a valid user in the smb.conf file, so make sure about that.

Here is my share config maybe you can help me understand it better

IMG_3449.PNG

Link to comment
Share on other sites

Link to post
Share on other sites

9 minutes ago, TBBZ8X8 said:

Here is my share config maybe you can help me understand it better

IMG_3449.PNG

You put @users which if I rembeber correctly should allow all users to access it. I don't know that much about samba and that just popped into my head as a possibility so yeah, I can't really help anymore :/ 

Make sure to quote me or tag me when responding to me, or I might not know you replied! Examples:

 

Do this:

Quote

And make sure you do it by hitting the quote button at the bottom left of my post, and not the one inside the editor!

Or this:

@DocSwag

 

Buy whatever product is best for you, not what product is "best" for the market.

 

Interested in computer architecture? Still in middle or high school? P.M. me!

 

I love computer hardware and feel free to ask me anything about that (or phones). I especially like SSDs. But please do not ask me anything about Networking, programming, command line stuff, or any relatively hard software stuff. I know next to nothing about that.

 

Compooters:

Spoiler

Desktop:

Spoiler

CPU: i7 6700k, CPU Cooler: be quiet! Dark Rock Pro 3, Motherboard: MSI Z170a KRAIT GAMING, RAM: G.Skill Ripjaws 4 Series 4x4gb DDR4-2666 MHz, Storage: SanDisk SSD Plus 240gb + OCZ Vertex 180 480 GB + Western Digital Caviar Blue 1 TB 7200 RPM, Video Card: EVGA GTX 970 SSC, Case: Fractal Design Define S, Power Supply: Seasonic Focus+ Gold 650w Yay, Keyboard: Logitech G710+, Mouse: Logitech G502 Proteus Spectrum, Headphones: B&O H9i, Monitor: LG 29um67 (2560x1080 75hz freesync)

Home Server:

Spoiler

CPU: Pentium G4400, CPU Cooler: Stock, Motherboard: MSI h110l Pro Mini AC, RAM: Hyper X Fury DDR4 1x8gb 2133 MHz, Storage: PNY CS1311 120gb SSD + two Segate 4tb HDDs in RAID 1, Video Card: Does Intel Integrated Graphics count?, Case: Fractal Design Node 304, Power Supply: Seasonic 360w 80+ Gold, Keyboard+Mouse+Monitor: Does it matter?

Laptop (I use it for school):

Spoiler

Surface book 2 13" with an i7 8650u, 8gb RAM, 256 GB storage, and a GTX 1050

And if you're curious (or a stalker) I have a Just Black Pixel 2 XL 64gb

 

Link to comment
Share on other sites

Link to post
Share on other sites

27 minutes ago, DocSwag said:

You put @users which if I rembeber correctly should allow all users to access it. I don't know that much about samba and that just popped into my head as a possibility so yeah, I can't really help anymore :/ 

That's ok thanks anyways

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, TBBZ8X8 said:

Ok so I am sharing files on an ubuntu server via samba. My problem is windows 10 rejects my main user when I login to the server even they are a sudoer and I have added them to the samba list using the smbpasswd -a -G USERNAME command. It only accepts the second account I created who is also a sudoer and in the samba list of acceptable users. I am using plex to share the video files I am putting into it but since the movies were already there when I mounted the partition they belong to the main user. This means that plex cannot access any of the files that the secondary user adds because I installed it under the main user. 

 

They are also both in a sudoer group that I think I properly added to samba.

 

please help I have no idea where to go from here .

selinux was my issue

this is what i had to use to get it to work correctly. for centos 7 i know commands can differ some . a quick and dirty way is to disable selinux and if the samba share works then its selinux if not something else ant setup 

 

setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
getsebool -a | grep samba_export
semanage fcontext -a -t samba_share_t "/SHARENAME(/.*)?"
restorecon /SHARENAME

 

then

systemctl restart smb
systemctl restart nmb

main rig

Spoiler

 corsair 750d | evga 1000w g2 | Gigabyte x99 soc champ | 5820k 4.0GHz | 1tb wd blue | 250gb samsung 840 evo  | Crucial Ballistix Sport XT 16GB 8x2 DDR4-2400 | MSI GTX 970 x2 | monitor Acer B286HK 28" 4K | razor chroma blackwidow  | razor death adder chroma

CENTOS 7 SERVER (PLEX&docker stuff)

Spoiler

NZXT s220 | evga 500w 80+ | AMD FX 8320e | ASUS M5A78L-M/USB3 | 2x8gb non ecc ddr3 WD red 2TBx2 | seagate 160gb microcenter 8gb flashdrive OS

 

Link to comment
Share on other sites

Link to post
Share on other sites

I got it. I had to change other permissions to 0775. Is there any hazard in doing that?

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×