LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-20-2006, 10:58 PM   #1
twac
LQ Newbie
 
Registered: Mar 2006
Location: Rotten Arkansas
Distribution: Ubuntu 8.04, OpenSuse 10.3, OpenSuse 10.2
Posts: 13

Rep: Reputation: 0
Problems modifying Samba Shares from Linux


We've set up some simple, low-security samba shares using a dedicated file server. I can modify the contents of the directories from windows, but not from linux (unless I'm logged in as root). I'm sure it has something to do with ownership or permissions. Here's part of samba.conf:

[global]
workgroup = certs
security = share
wins support = yes
load printers = yes
printing = cups
printcap name = cups

[bus_files]
comment = business files
path = /data/bus
read only = no
force user = bus
force group = bus
browseable = yes
guest ok = yes
nt acl support = no

Before this setup, we were sharing all the business files off the fastest desktop we had. Now we've at least got a file server. As we become more adept in working with Linux, we'll increase security. Right now, though, we just need it to work; our business is suffering. Any help is appreciated. Thanks.
 
Old 03-21-2006, 12:50 AM   #2
twac
LQ Newbie
 
Registered: Mar 2006
Location: Rotten Arkansas
Distribution: Ubuntu 8.04, OpenSuse 10.3, OpenSuse 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
After doing some more looking around, I found out I can modify them if I access them by browsing to them. I can't modify anything in them if I access them by using the mount points created in fstab.

//server/bus /home/bus smbfs username=default,password=default 0 0

Thanks ...
 
Old 03-21-2006, 02:55 AM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
When your accessing the files over the network samba is the one who is controlling the permissions and access, sort of given root previliges over the shares defined in the smb.conf. When you access the same folders from being logged in locally or through a console like ssh, you will then be controlled by the unix permissions, completely removed from samba.
 
Old 03-21-2006, 07:20 AM   #4
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Also, the owner/group is bus. Is this what you're logging into Samba as? Your security is set to by the share's permissions on the files, so that's something to take a look at, so in your fstab entry, you need "username=bus,password=(mypasswordhere)"

Last edited by ARC1450; 03-21-2006 at 07:21 AM.
 
Old 03-21-2006, 09:29 AM   #5
twac
LQ Newbie
 
Registered: Mar 2006
Location: Rotten Arkansas
Distribution: Ubuntu 8.04, OpenSuse 10.3, OpenSuse 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
I thought that's what the forceuser = bus and forcegroup = bus options were for, to make sure no problems like this came up. Is there another option we can add to samba.conf so that we can avoid putting a password in fstab?

Thanks for the help.

Last edited by twac; 03-21-2006 at 09:31 AM.
 
Old 03-21-2006, 10:13 AM   #6
wpg9210
Member
 
Registered: Apr 2004
Distribution: Fedora 4
Posts: 68

Rep: Reputation: 16
Not to sound stupid, but did you check the permissions of the mount point?
 
Old 03-21-2006, 12:53 PM   #7
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Quote:
Originally Posted by twac
I thought that's what the forceuser = bus and forcegroup = bus options were for, to make sure no problems like this came up. Is there another option we can add to samba.conf so that we can avoid putting a password in fstab?

Thanks for the help.
Woops. . .I was thinking of the create masks.

http://us1.samba.org/samba/docs/man/...html#id2578536
That may be able to help you better then.
 
Old 03-21-2006, 01:50 PM   #8
twac
LQ Newbie
 
Registered: Mar 2006
Location: Rotten Arkansas
Distribution: Ubuntu 8.04, OpenSuse 10.3, OpenSuse 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
Yes, I did check permissions of the mount point. It doesn't sound too stupid - the obvious things are usually overlooked.

Thanks for the link.
 
  


Reply



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
problems accessing samba shares psycode Linux - Software 2 01-26-2006 03:59 PM
Samba problems -> can't acess to shares in Windows JoaoMorgado Linux - Software 2 12-27-2005 06:08 PM
Problems with mounted Samba shares Fozza Linux - Software 1 12-09-2004 04:00 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
Problems mounting samba shares nairnie Linux - Software 3 11-28-2003 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 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
Open Source Consulting | Domain Registration