LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-29-2014, 03:50 PM   #1
ghostinthecode
LQ Newbie
 
Registered: Apr 2014
Location: Virginia Beach VA
Distribution: Fedora 19, Debian, Kali
Posts: 9

Rep: Reputation: Disabled
Identity on a home network


I'm setting up a simple home network server for filesharing and experimentation( i have little experience with networking)and my question is about user identity. Firstly, I'll be using samba since my wife uses windows. Will there be a seperate "shared folder" on the server for her than for me? Second, and more importantly, if I ssh into the server from my laptop, will I be working under the same user info as my laptop, or would I need to create a user account on the server and simply be logging remotly into that? Probably stupid questions, but again, I have very little experience with networking.
 
Old 08-29-2014, 05:05 PM   #2
S4KmBL
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Rep: Reputation: Disabled
Identity on a home network

To your the first question: You are the one who set up shares, hence, you decide - will it be a common share for your wife and you or it will be two separate.
To your the second question: While using SSH client, you'll have to use valid account from your server OS (for example, root).
 
Old 08-29-2014, 08:30 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,590
Blog Entries: 28

Rep: Reputation: 6220Reputation: 6220Reputation: 6220Reputation: 6220Reputation: 6220Reputation: 6220Reputation: 6220Reputation: 6220Reputation: 6220Reputation: 6220Reputation: 6220
To build on what S4KmBL said, you can set up a user account for each user on your linux machine. Then you create a user with the same user name and password for samba. (It's best to have users accessing the shares via there own user names; many Linux users frown on using ssh as root.)

In your /etc/samba/smb.conf file, you manage access and permissions. You can allow all users to see all the shares, or you can restrict users to individual shares, or you can make one or more shares accessible for browsing by "guests."

In addition, you must make sure that shared directories are marked as "shared" with the appropriate permissions in the directory configuration.

In case it helps, here's a bit of my smb.conf file.

Code:
$ cat /etc/samba/smb.conf
# Global parameters

[global]
workgroup = workgroup
security = share
encrypt password = yes
smb passwd file = /etc/samba/smbpasswd
show add printer wizard = No
wins support = no

[sharefiles]
path = /path/to/some/directory
guest ok = yes
read only = no
available = yes
browsable = yes
public = yes
writable = yes
The most helpful guide I have found to Samba was Samba by Example.
 
  


Reply

Tags
network, user


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Simple VPN to link my home network to my father's and fiancees home networks christiansacks Linux - Networking 3 09-14-2012 01:55 PM
Connecting to a LINKSYS home wireless home network billy2b@aol.com Linux - Wireless Networking 3 10-04-2011 06:52 PM
Is this a secure way to set up a home network (with network storage) ? phildacey Linux - Security 2 08-24-2006 04:25 AM
Home network setup with network firewall/router Gates1026 Linux - Networking 4 01-17-2005 08:26 PM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:35 AM.

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