LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-03-2011, 06:25 AM   #1
jufo
LQ Newbie
 
Registered: May 2011
Distribution: fedora
Posts: 6

Rep: Reputation: 0
Change access settings of directories shared from Linux Server-samba


Hello. Please help.

1. How will i know who are the authorized windows pc users that can access the folder shared from a linux server-samba? how to display list of them? what command? I am struggling through ssh only..
2. How will i change their access rights to the folder? if i only want them to access the file as read-only, or write or read and write???
(i am trying to configure this linux server using PUTTY or SSH only)
Thank you.
 
Old 11-05-2011, 05:32 PM   #2
sswuste
LQ Newbie
 
Registered: Nov 2011
Posts: 11

Rep: Reputation: Disabled
Both questions can not be answered without more knowlegde about your system. But you can check the /etc/samba directory and look in the smb.conf file. Here you can allow and deny certain users/ip-adresses.

EXAMPLE

[global]
debuglevel = 1
workgroup = Workgroup
netbios name = OURFILESERVER
security = share
disable spoolss = Yes
show add printer wizard = No
printing = cups
load printers = yes
hosts allow = 127.0.0.1 192.168.1.0/24 192.168.1.110 78.206.93.2 72.163.17.253
hosts deny = 0.0.0.0/0

[specialdocuments]
comment = Specails
path = /var/specialdocuments
read only = No
guest ok = yes


[readonlydocuments]
comment = olddata
path = /var/olddata
read only = Yes
guest ok = yes
 
Old 11-07-2011, 12:07 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by jufo View Post
Hello. Please help.

1. How will i know who are the authorized windows pc users that can access the folder shared from a linux server-samba? how to display list of them? what command? I am struggling through ssh only..
2. How will i change their access rights to the folder? if i only want them to access the file as read-only, or write or read and write???
(i am trying to configure this linux server using PUTTY or SSH only)
Thank you.
In the smb.conf check for the entry of file which has been shared

Code:
[share]
users = user1 user2 user3
read only = yes
writable = yes
change the options as per your requirements

for permissions on individual folders
give related permissions using

Code:
#chmod 755 (dir_name)
 
Old 11-11-2011, 05:16 AM   #4
jufo
LQ Newbie
 
Registered: May 2011
Distribution: fedora
Posts: 6

Original Poster
Rep: Reputation: 0
Smile

@sswuste: Thanks for your reply. Now i understand the concept on how to set those permissions..

@deep27ak: Thank you also for your answer. But where should i put this???

Code:
#chmod 755 (dir_name)


Let us say i have to share those individual folders with it subfolders in diff access combination (read, write, read and write). In what portion should i put this code??? How does it affect the permission for each user??? Thanks
 
Old 11-18-2011, 05:10 AM   #5
jufo
LQ Newbie
 
Registered: May 2011
Distribution: fedora
Posts: 6

Original Poster
Rep: Reputation: 0
It is all clear now. Sorry if i have to ask you without even searching the net.Thank you very much!
 
  


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
How to Access windows server 2008 shared folder(samba is installed) from Ubuntu pincustomer Linux - Newbie 3 01-28-2009 04:14 AM
Cannot change samba server settings amyree Linux - Newbie 6 10-14-2005 02:36 PM
no access to shared directories with samba Meriadoc Linux - Networking 1 03-13-2005 06:42 AM
Access Shared Directories gotmonkey Linux - Networking 5 04-15-2004 09:20 PM
"Access Denied" to printer and directories shared via Samba Aarstar Linux - Networking 1 03-05-2002 06:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:22 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