- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: samba user access to /var/www
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 08:54 AM
10-23-2006 08:54 AM
samba user access to /var/www
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 10:08 AM
10-23-2006 10:08 AM
Re: samba user access to /var/www
For example:
groupadd webdev
find /var/www -type d -exec chgrp webdev {} \;
find /var/www -type d -exec chmod 775 {} \;
In the samba share, use the option:
valid users = @webdev
Add the users to the webdev group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:36 PM
10-23-2006 01:36 PM
Re: samba user access to /var/www
[global]
workgroup = AMRS
; security = DOMAIN
security = user
encrypt passwords = Yes
map to guest = Bad User
password server = *
log file = /var/log/smb.log
keepalive = 30
os level = 2
use mmap = no
socket options = SO_KEEPALIVE TCP_NODELAY
wins server = 146.125.26.201;170.240.224.201;146.125.26.202;170.240.224.202
[WEBDEV]
comment = Web Developers
force group = webdev
path = /var/www
public = yes
writable = yes
printable = no
create mask = 0770
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 04:00 PM
10-23-2006 04:00 PM
Re: samba user access to /var/www
Dumb question: Did you set up the 'group' called 'webdev', and add those selected users to that group?
You need to have the 'valid users = @webdev'. You can leave the 'force group = webdev', but the lack of 'valid users' is what's allowing everybody access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 12:12 AM
10-24-2006 12:12 AM
Re: samba user access to /var/www
Below is an example:
[web]
path = /var/www
admin users = user1 user2 user3
Of course user1,user2,user3 must exist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 06:18 AM
10-24-2006 06:18 AM
Re: samba user access to /var/www
re: Dumb question: yes, I did setup the group and I did put the users in it. By adding that parameter, 'valid users = @webdev', it actually causes SAMBA to "break" (it prompts me for username and password, but doesn't accept them). When I remove it, I'm able to map the share... but so is everyone else.
re: admin users: same situation as above.
Of course user1,user2,user3 must exist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 06:58 AM
10-24-2006 06:58 AM
Re: samba user access to /var/www
Ensure that you added the user using smbpasswd -a.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 07:16 AM
10-24-2006 07:16 AM
Re: samba user access to /var/www
re: Dumb question: yes, I did setup the group and I did put the users in it. By adding that parameter, 'valid users = @webdev', it actually causes SAMBA to "break" (it prompts me for username and password, but doesn't accept them). When I remove it, I'm able to map the share... but so is everyone else.
re: admin users: same situation as above.
re: 'password server = *' same situation.
i.e. withoug 'force group = webdev', I'm unable to write to the directory with any of the above 3 options.