Ubuntu Networking :: Sync System Accounts With Samba?
Feb 3, 2010
What I want is to use the systems account as the samba accounts.In school we have a project to simulate some sort of corporation with different platforms. I've created a map called shared and for authentication the users should only need to be a member of the group employees. (force group = groupname in smb.conf right?) Now, I don't want to create the users with smbpasswd -a because there is alot of accounts and the users should be able to choose their own passwords. So, is it possible to sync the system accounts with samba and only use group as authentication?
I setup samba file sharing to auto mount in fstab. Everything works great except when a computer has more than on user account.
The folders in mnt are owned by root and ownership changes to the first user account no matter what user logs in. So only the first user can edit files in the mounted share.
Anyone got a clue why this is happening? Seems the mount folders should be changing ownership to the user that is logged in.
I've recently purchased a laptop so I've been focusing on getting my data synchronized between my laptop and PC. The problem is as follows, I have 8+ email accounts and I prefer to have them all in 1 single map tree instead of a separate tree for every one of them. This means IMAP is out of the question, so I've been thinking about a few things but I'm not too sure if there's anything out there for some of these things.
Option 1 - Unison Synchronization Using Unison to synchronize the Thunderbird profiles, problem is Thunderbird can't be running on both machines
Option 2 - IMAP mail hub for all accounts Somehow turn my server into a mail hub that gets email for all my accounts, and serve them through IMAP somehow, only problem that might be is that reply-to won't send a mail back with the same mail address people mailed to (Don't know that for sure).
Option 3 - POP3 mail hub Same as option 2 but with a central POP3 hub that will keep all mails forever, should be doable.
Not viable option - Turn off mail deletion on server. This ain't viable because this will either cause some of the mail servers to clog up, especially if I were to only turn deletion on on 1 pc. So it seems the POP3 hub is best, and then just let that delete everything off of the remote servers, is this possible, I've tried setting up a mail daemon before but failed miserably (But will try again if it will make this possible).
I've got a hybrid network of Windoz and Mac clients that I want to auth to a CentOS Samba server (currently running a tdbsam backend but will eventually be migrated to an OpenLDAP backend)...what is the best solution for "sync'ing" the Mac clients (mostly laptops) to the server, all the solutions that I've seen suggest that I should simply map the users home drive to the PDC but that doesn't mac much since to me seeing as they need to access their computers data while they're off site...is there a way to "sync" user profiles in Linux>?
I am in the process of setting up and e-mail system for my small business. In the past I have always had my ISP and my domain registrar handle the e-mail and just POP the e-mail to a ciient such as thunderbird. Now I have decided in order to better learn postfix or sendmail, I want to setup my own and administer it. My question is:
1 - Once I have my domain name for my company is the e-mail accounts just created via psotfix or sendmail or are the accounts created via my domain registrar like my domain name? For Example: my domain name is test.com and I wanted president@test.com.
2 - Are e-mail servers setup in a DMZ as realys and then forwarded to an internal e-mail server and them transmitted to the clients or are they normally just put inside the LAN?
I am unable to join a W2K or XP machine to a Samba PDC. I have tried to make this work on both 8.04 LTS and 10.04 LTS without success. Everything else works but I cannot add machine accounts "on the fly" using the "add machine script" as provided in the server guide. I have been able to make it work by enabling the root user but not as a user with admin privileges and sudo in the script. Despite multiple attempts including a new 10.04 install and following the instructions (in the 9.10 server guide) to the letter. Does anyone out there have a samba PDC actually running on Ubuntu and able to add machines on the fly without enabling the root account (i.e using SUDO in the script and a user from the admin group)?
we are using LucidLynx Linux, 64-bit,with ActiveDirectory accounts via samba/winbind 64-bit.I have 2 separate 32-bit applications:IBM MQ Toolkit (32-bit java-based) and Acrobat Reader
how do I go about using rsync or grsync to sync folders to a samba share in my storage router? the samba share ip is smb://192.168.0.1/usb1-c/ tried using grsync but it says cant find smb!
I've got a hybrid network of Windoz and Mac clients that I want to auth to a CentOS Samba server (currently running a tdbsam backend but will eventually be migrated to an OpenLDAP backend)...what is the best solution for "sync'ing" the Mac clients (mostly laptops) to the server, all the solutions that I've seen suggest that I should simply map the users home drive to the PDC but that doesn't mac much since to me seeing as they need to access their computers data while they're off site...is there a way to "sync" user profiles in Linux>?
I currently have an ftp server setup using Ubuntu 10.04 and pureftpd with mysql as the backend. All the ftp users are "virual users" that are stored in mysql. I want my existing users to be able to use scp to transfer files instead of ftp. As far as I know, you can only use ssh/scp if you have a system account. All of my virtual users use the same system account of "ftpuser".
Is it even possible for me to setup the users with scp access, even though they don't have an actual system account? I really don't want to setup system accounts for each user. I have a lot of ftp users and I plan on expanding that number, so adding system accounts isn't ideal, plus I feel like that will bring new security issues (researching chroot for ssh and how to lock down ssh).
I'd like for the server (10.04) to keep samba passwords and unix passwords "in sync"; i.e. when a user changes his unix password (via passwd), his Samba password is automatically changed to match the unix password. Similarly, when a user changes his samba password (via smbpasswd), then his unix password is changed to match. smb.conf seems to make provision for this; following are the applicable entries from my smb.conf:
Ever since my upgrade to 10.04 I no longer have Samba shares to my WinXP system(s).I have searched the forums high and low and for the life of me cant figure out what I am doing wrong.I am not able to see my XP system from Ubuntu, nor see my Ubuntu system from XP.Attached here is a copy of my smb.conf.
I have an ubuntu 8.04 running samba that's integrated with active directory but not using winbind. Things are working fine except there are lot of entries in the samba logs about:
smbd/sesssetup.c:reply_spnego_kerberos(439) Username CARBYkentoso$ is invalid on this system
CARBY is the domain name and kentoso is the computer name. I only see this error for the computers and not the users. Other than this, it's working fine. Is there a way to make this error go away? This is the smb.conf file:
[global] workgroup = CARBY realm = CARBY.LOC server string = LION security = ADS map to guest = Bad User obey pam restrictions = Yes passdb backend = tdbsam pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Entersnews*spassword:* %n *Retypesnews*spassword:* %n *passwordsupdatedssuccessfully* . unix password sync = Yes client NTLMv2 auth = Yes client lanman auth = No syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 name resolve order = dns hosts lmhosts bcast printcap name = /etc/printcap disable spoolss = Yes preferred master = No local master = No domain master = No ldap ssl = no usershare allow guests = Yes panic action = /usr/share/samba/panic-action %d invalid users = root, nobody
[printers] LOCment = All Printers path = /var/spool/samba create mask = 0700 printable = Yes browseable = No
allow sftp access to my Ubuntu system (happens to be desktop as it's also my main system) using accounts that are not able to login normally. (I have already managed to create such accounts.) These accounts need to be chrooted (also already accomplished with the openssh daemon settings.) Where I run into problems is that I want to give them (read only) access to files outside the chroot (on another partition in fact) and the matter if made more difficult because the directories to be shared are on NTFS-3G partitions (as they are a shared linux / windows storage drive). Is this possible and if so, what do I need to do?
Edit - Forgot to include versions Ubuntu 10.10 openssh 1.5.5p1-4ubuntu4 (the one that comes with 10.10)
I've been using samba without issue on Fedora 11 (x86_64) and decided to upgrade to F13 on one of my machines. Upon install I installed samba with the command: Code: sudo yum install samba samba-client cifs-utils I can now see the smb.conf file and could probably use samba via command line; but, I would really like to use the GUI to configure samba as I have in the past. The problem is, there is no samba gui. How do I get the samba GUI back under: System->Administration where it usually is?
I have recently trying to build an Accounts system database for a project. When you run the program it goes in the main menu sort of like this.
Accounts System Add a Customer With a Contract......1 Add a Customer Without a Contract...2 Display all Customers...............3 Find a Customer.....................4 Edit a Customer.....................5 Print a Statement...................6 Print an Invoice....................7 Load File...........................8 Save and Exit.......................9
When you add a customer with a contract, you add name, address, start contract, end contract, payment and email address. Now, is there a code I could write to get back to this menu. To not confuse anyone, all I just saying is supposing I accidentally push number 1 on the keyboard and suppose I didn't want to add a customer. In other words I need a code that can cancel (or stop) adding a customer to go back to the accounts system menu.
When I run from the command line, I get this output:
Traceback (most recent call last): File "/usr/sbin/system-config-samba", line 45, in <module> mainWindow.MainWindow(debug_flag) File "/usr/share/system-config-samba/mainWindow.py", line 82, in __init__
[code]....
I have removed and re-installed and get the same crash.
The default output audio port Ubuntu doesn't work on my system. It should be "Analog Mono Output/Amplifier", instead of "Analog Output/Amplifier". I can easily change that in sound preferences, just by choosing the right port in the "Output" tab. The problem is this would only apply to a single account, and I would like to change it system-wide, so it applies to all accounts on the system (I have more than 100 users...).
Update: I can achieve the same effect as I would by changing it in sound preferences using the following command: pacmd 'set-sink-port' 'alsa_output.pci-0000_00_1f.5.analog-stereo analog-output-mono;output-amplifier-on' Unfortunately that's still not system-wide,
I wrote a small script that gets me the list of enabled system accounts in my system.
I figure '*' & '!' (in field #2 of /etc/shadow) mean that the account is disabled or they cannot login, hence 'safe-to-ignore'
Code: IFS=$' ' for i in `cat /etc/passwd` #get each line in the passwd file do var1=`echo $i | cut -d':' -f3` #get user ID field if [ $var1 -lt 500 ] && [ $var1 -gt 0 ] #compare to extract relevant IDs
[Code].....
BTW i figure the following command gives me the list of system users, but i am not able to find a way to process it further... :-(
I installed samba server in my external HDD. But it is not shown in system ----> Administration. Is there any problem. Then How to give permission to access home folder.
I'm running a dual-boot; Lucid and Win XP on a HP Pavillion.My time settings are about 8 hrs off between the two operating systems. If I correct the time in Linux, it will be wrong when I boot in Windows. If I correct it in Windows, it will be wrong again next time I boot into Linux.Besides the obvious solution of removing Windows from my machine (which I'm not ready for), what should I do to fix this?
Is there a way to automatically set the wireless settings for all of the accounts on the system? If I change the encryption key, DNS settings etc, I like for them to be global and not have to have the other users (my kids) have to change settings (or bypass settings).
I've got Ubuntu One syncing a single 25MB folder on 4 computers. On one of these computers, the ubuntuone-syncdaemon process constantly pegs the CPU, using from 50-80% long after any sync-able files have been modified and successfully synced. The process is only using 8.9MB of RAM.
Specs: Ubuntu 10.04 (lucid) Kernel 2.6.32-24-generic 1000.8 MB RAM Pentium 4 2.53GHz Free disk space: 280.9 GB System monitor shows 56.8% total RAM usage, 15.4% swap file usage.
Audio sync method. "Stretches/squeezes" the audio stream to match the timestamps, the parameter is the maximum samples per second by which the audio is changed. -async 1 is a special case where only the start of the audio stream is corrected without any later correction.Searching the net makes one believe that this command is just some sort of magic.People just put it in the line and it just works. Isn't that nice?
It says nothing about how to change the TIME the audio starts syncing. Like do I want it to start 5 seconds delayed? Or what about 5 seconds sooner?What if the audio gets more out of sync as the video goes on? Can I slip it a little at a time? What? No magic?No one mentions a file that already has badly synced audio.So what -async 1 really does is simply start the audio at the beginning of the file. LIKE AS IF THAT ISN'T STANDARD PROCEDURE?So what is the exact solution to syncing a messed up video? And why can't it just do the proper "timestamp" sync in the first place?No docs, no info and you are left out in the cold.
I googled a lot but I didn't find anything about this. I have multiple accounts on the same ftp server (the server is not mine I don't access its configuration)
If I write ftp://hostname on the location bar it lets me login, but only allow me to be in only one account at a time. Putting ftp://hostname on the location again just opens the account I logged into and I'm unable to login to the other account to move files between them conveniently.
Is it possible to log into multiple accounts on the same server?
at the moment we're running an isc dhcpd with about 300 clients to serve. Because of inconsequent maintaining i think we have about over 50 dead static client entries in our dhcpd.conf. So we want to change our construct.Our aim is to allow a mac on the dhcp server to get an ip address. If this mac hasn't registered an ip address from the dhcp server for a time more than 90 days, the host entry gets disabled or deleted automatically. I'm searching for such kind of dhcp server configuration for many days. Have you any idea if there is a possibility to implement such a configuration?
I use jpilot on opensuse 11.3 64bit to sync pim data with my Palm Treo 680 via bluetooth. This worked fine until today. Now I get the following error message when I try to sync: Syncing on device bt: Press the HotSync button now dlp_ReadSysInfo error Exiting with status YNC_ERROR_PI_CONNECT Finished.
The last successfull sync was on the 20th October and today is the 24th October. I did not change any settings in jpilot or on my palm device. So I guess there must have been an update of opensuse which causes this error. But I do not now how to look up the updates during this period or how to undo them. Was there an update between the 20th and the 24th Oktober, which might affect either jpilot or bluetooth functionality?
I've discovered Firefox Sync a while ago, and it's absolutely awesome. Now of course I'd like most of my software to work this way! So is there a way to get the same behavior with Thunderbird?