Sponsored Content
Special Forums UNIX and Linux Applications Copy numerous private Samba-shares as one user. (Syntax question) Post 302557772 by primaxx on Thursday 22nd of September 2011 05:15:59 AM
Old 09-22-2011
Copy numerous private Samba-shares as one user. (Syntax question)

Hello Forum,

I was overwhelmed by how fast and correct the responses to my first question in this forum was, and I hope I expreience this again today.

The reason is that I have to copy a fileserver (Ubuntu 8.04 32 with Samba) to another server via Internet within tomorrow. I have no problem with the shared (Samba)folders, but are struggling with the private ones.

And my question is quite simple:
When adding users to the Samba-server i follow this procedure:
  • Create a user in Linux and add password to user.
  • Create user in Samba and add same password.
  • Edit /etc/samba/smb.conf by adding the new username to the shared folders.
I have configured Samba to, in this process, also create a private share for each linux-user one the server. This is done by the following "code" in /etc/samba/smb.conf:
Code:
[profiles]
     browsable = no
     writable = yes
     path = /home/private/profiles
     guest ok = no
     comment = User Profiles
     valid users = %u
     create mode = 0600
     browsable = no
     directory mode = 0700

How do I add myself as one of the valid users? (By doing that I hope to be able to copy every folder in one batch.)
I can of course go around the problem by allowing guests, but I don't want to if I don't have to.

I appreciate any response here.

Rgrds,
Primaxx
 

10 More Discussions You Might Find Interesting

1. IP Networking

How to enumerate samba shares with client

I have a samba server node and I want to mount the samba (CIFS) shares from a second (client) unix machine. However, the unix mount command requires I specify the name of the share. What if I don't know the name of the share? How can I enumerate all the shares from the samba client machine? ... (1 Reply)
Discussion started by: siegfried
1 Replies

2. UNIX for Advanced & Expert Users

Samba config file syntax

I hope I'm posting in the right forum. In the samba config file smb.conf in the global settings area... we currently have a domain in the workgroup section as workgroup = domain_name I want to add another domain name to allow attaching to samba. What is the syntax to add another domain... (1 Reply)
Discussion started by: AWSeeker
1 Replies

3. Shell Programming and Scripting

extraction of samba shares with sed

Hi there, My samba configuration file looks like that : ... ... path = /home/samba/profiles/ ... path = /home/samba/shares/family valid users = family path = /home/samba/shares/admins valid users = admins path = /home/samba/shares/publicI want to extract the list of standard... (3 Replies)
Discussion started by: chebarbudo
3 Replies

4. UNIX for Dummies Questions & Answers

Samba - Creating shares

So I have Samba installed on my server and I have to create two shares. Make a backup of your smb.conf - call it smb.conf.orig. Create a share called shared that allows read and write permissions for everyone and points to /media/shared. Create another share called www that points to the... (1 Reply)
Discussion started by: shadowcat
1 Replies

5. Windows & DOS: Issues & Discussions

Script to automatically map samba shares as network drive

Hopefully someone will be kind enough to help me. I have a fileserver acting as a PDC and providing samba shares to a small network. Authentication to the PDC is via LDAP (setup using ebox) The users all have real local accounts on the server. I would like a windows logon script that will:... (4 Replies)
Discussion started by: barrydocks
4 Replies

6. UNIX for Dummies Questions & Answers

Help mounting Samba shares

I have these two shares on my Ubuntu Server: path = /media/share read only = no guest ok = yes path = /var/www read only = noI want to mount them to the directories that I created on my Desktop called "shared" and "www" how do I do this? I ran the command: smbclient -L... (1 Reply)
Discussion started by: shadowcat
1 Replies

7. UNIX for Dummies Questions & Answers

SFTP syntax without specifying private key location (no password)

Hi all, I need to connect using SFTP from Red Hat to Windows. Connection between servers work when I specify location of my private key in the script. However, I want to use syntax without private key location specified. I know this should work, as I found it in older scripts. Scripts were... (0 Replies)
Discussion started by: yavvie
0 Replies

8. UNIX for Dummies Questions & Answers

Help with accessing Samba shares on external (NON-DOMAIN) webserver(s)

Hi all, You may have seen my recent topic, where I asked for help getting some samba shares to work on our network. Now that these are working, I move on to the next hurdle! We have a few externally hosted (Windows Server 2008 R2) web servers which are not on our domain, but can still... (0 Replies)
Discussion started by: mgreen81
0 Replies

9. AIX

AIX 7.1 - Samba 4 File Shares and Integration with Active Directory Issues

Hi. Ive recently upgraded Samba on an AIX server to Samba 4. The aim is to allow a specific group of Windows AD users to access some AIX file shares (with no requirement to enter passwords) - using AD to authenticate. Currently I have: Samba 4 installed ( and 3 daemons running) Installed... (1 Reply)
Discussion started by: linuxsnake
1 Replies

10. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies
SMBSTATUS(1)							   User Commands						      SMBSTATUS(1)

NAME
smbstatus - report on current Samba connections SYNOPSIS
smbstatus [-P] [-b] [-d <debug level>] [-v] [-L] [-B] [-p] [-S] [-s <configuration file>] [-u <username>] DESCRIPTION
This tool is part of the samba(7) suite. smbstatus is a very simple program to list the current Samba connections. OPTIONS
-P|--profile If samba has been compiled with the profiling option, print only the contents of the profiling shared memory area. -b|--brief gives brief output. -d|--debuglevel=level level is an integer from 0 to 10. The default value if this parameter is not specified is 0. The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a reasonable level for day-to-day running - it generates a small amount of information about operations carried out. Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic. Note that specifying this parameter here will override the smb.conf.5.html# parameter in the smb.conf file. -V|--version Prints the program version number. -s|--configfile <configuration file> The file specified contains the configuration details required by the server. The information in this file includes server-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide. See smb.conf for more information. The default configuration file name is determined at compile time. -l|--log-basename=logdirectory Base directory name for log/debug files. The extension ".progname" will be appended (e.g. log.smbclient, log.smbd, etc...). The log file is never removed by the client. -v|--verbose gives verbose output. -L|--locks causes smbstatus to only list locks. -B|--byterange causes smbstatus to include byte range locks. -p|--processes print a list of smbd(8) processes and exit. Useful for scripting. -S|--shares causes smbstatus to only list shares. -h|--help Print a summary of command line options. -u|--user=<username> selects information relevant to username only. VERSION
This man page is correct for version 3 of the Samba suite. SEE ALSO
smbd(8) and smb.conf(5). AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy. Samba 3.5 06/18/2010 SMBSTATUS(1)
All times are GMT -4. The time now is 03:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy