Ubuntu Networking :: 9.10 - Sudo Server Samba Restart
Feb 21, 2010
My Ubuntu 9.10 works well with the network through samba, but only if I first run -
sudo service samba restart
Then all is fine. I don't understand this. How can I avoid having to do this? Or alternatively where can I best put this command so that it will be run on boot-up.
I have a problem with samba machine disappearing after I restart smb or the server where samba is running. Lets say I name my samba server ABC and set it up via system-config-samba utils. I follow basic steps and fill out everything according to most guides that are available for fedora. After that everything works great, I can connect to samba server ABC form any machine through smb://ABC (mac) or \ABC (win), however as soon as I restart smb services or my server (subsequently restarting the smb service ...) I no longer can connect to it via samba server name ABC, I can only do smb://SambaServerIP or \SambaServerIP (have to put numerical internal ip to connect)
a few times a day I have to run sudo service smbd restart on my primary server to get samba working again.y working i mean being able to see the server in the workgroup and being able to type smb://phoenix/ and have a result. please help me troubleshoot this.env: server: 10.10 x64, clients: 10.10 32 & 64, 10.04, winxp all affected the same waylast time it occurred within 2 hours after a reboot. here's the config. I've been commenting out lines that I wasn't sure of in an attempt to troubleshoot this.
running Ubuntu 10.10, generally with no probs. After the upgrade to 10.10, and several updates, I still have a problem. Namely when ever I re-boot, which now more often than I'd like, due to a machine failure. It starts, but accross the network can't "see" tux, pop to root term, and
I recently built a computer for a friend that is only going to be used to run a network share.
The problem I am running into is that whenever the computer restarts the share, while visible, cannot be accessed by the two Windows 7 laptops in the house.
If I run 'sudo umount /media/storage' followed by 'sudo mount /dev/sda1 /media/storage' the once visible but inaccessible share is now accessible.
I do not understand why this would be. I have added the line 'usershare owner only = false' to my smb.conf file.
explain the difference between these two commands. I'm currently reading about changing your mac address and both of these commands show up a lot. They sound like the same thing to me. Is one better than the other, or do you need to use both to change your mac address?
Code: sudo ifconfig eth0 down sudo /etc/init.d/networking stop
I recently installed Server 10.10 64-bit. After installation, I set up my config file (/etc/samba/smb.conf), and tried to restart Samba: Code: /etc/init.d/samba restart There was nothing to restart though - the file /etc/init.d/samba wasn't there! Purged the package and re-installed. Tried reformatting and adding Samba as a pre-installed package. Trying to find the server guide for 10.10, but no dice. Did something change for Samba in 10.10?
xubuntu and tried to set up my old pc, the problem is that when i modify my samba file and want to restart using /etc/init.d/samba restart the file wasnt there
I have been using Fedora since almost 1 week by now, and I'm really impressed by its features but there is one very small problem that I face everyday.At the first place, I had setup a profile settings for Network so all my static IP, Hosts, DNS servers were all configured in that profile.Now I had filled in something in the Primary DNS Server and then I had saved it. The internet works after that but when I reboot, that Primary DNS server gets deleted. I have to type it all the time and then click on save and then start using the internet again.
I need to know is there any way to record or tracking or make logging if when user samba delete files or folders i can know that, cause sometimeon samba server some users complain they lost files, though i have daily backup and i can restore their files, i just want to know if or maybe some other users in one group accidentally move or delete the files.
I am having trouble running commands by using sudo. I configured visudo file with localuser ALL=(ALL) ALL but I can't run any command, it tells me command not found.
I've after latest jessie update a problem with service samba restart. If I use "service samba restart", there is a timeout (after long time) and error.
Output of "systemctl status samba.service":
Code: Select all● samba.service - LSB: ensure Samba daemons are started (nmbd and smbd) Loaded: loaded (/etc/init.d/samba) Active: failed (Result: timeout) since Mo 2014-10-20 02:16:57 CEST; 7s ago Process: 6205 ExecStart=/etc/init.d/samba start (code=killed, signal=TERM)
Okt 20 02:16:57 server systemd[1]: samba.service start operation timed out. Terminating. Okt 20 02:16:57 server systemd[1]: Failed to start LSB: ensure Samba daemons are started (nmbd and smbd).
[Code] ....
Whats going wrong. "service samba restart" should bring no error message if the service is not running previously.
Just like the title states, as soon as my server comes up, I see the samba share that I made and can browse it just fine.
I don't see the printer share nor can I print to the shared printer until I execute service smbd restart from an ssh login. Then I see the printer and then I can network print.
Before restarting smbd, I do check to see if it's already running and it is (two instances are running in fact). When I restart smbd, there are still two smbd services running but they have higher PID numbers (and I can then print).
I'm running 10.04. how to make it all start up happily the first time without any intervention from me?
I have a GUI for Samba already as it most likely installed, the problem is I don't have a shared folder in admin menu. I have told samba what folder to share and what user to have access to it. As well I have looked at the config file to make sure what was in the gui printed into the config file. However I cannot start, stop, restart samba via command line. I will try config package and hopefully that drops down everything,
[code]...
sudo service smbd restart unrecognized service, nmbd same thing. Now it is installed, but has no script file or the script file is not in the init.d folder like it should be still trying to figure I have come to the conclusion that the daemons are not installed and am trying to figure out what those script files look like or a way to import them off a ftp, however no luck with google so far. But the scripts files don't exist on my box. how do you install samba daemons when it says samba is already installed.
I have in my home 3 pc's 2 of them ubuntu, 1 windows/ubuntu. I have a NAS (mybook WD) that I'm going to hack to install a linux OS on it, to take advantage of some benefits. I'll need access from windows networks. I've read there are many benefits of NFS over Samba, with the inconvinient that it cannot be access by windows. Is it a good idea to have both NFS and samba on the file server?
I have an Ubuntu 9.10 Samba file server. I have set up Ubuntu 10.04 netbook remix in a home network which also has Windows XP home and Vista computers already present in the network. The XP and Vista machines have no problem accessing the file shares.
The server is running mhddfs with FlexRaid. The security is set to share level access. I have a hosts allow line in the smb.conf file to permit access to certain IP addresses and have added the 10.04 netbook remix IP address to this hosts allow line.
I cannot access shares from the 10.04netbook remix machine if the hosts allow line is active, but have no problem from the windows machines. If i comment out the hosts allow line, all machines can access the share, including the netbook remix machine. I am fairly new to Linux and would appreciate any help in solving this problem.
I am having slight issue with setting up file sharing. I have a windows 7 pc and hp proliant microserver running. I have a raid array which I am using as a share for storing music, pictures etc. When I reboot the debian server I can't connect to the server from the windows 7 PC (I have mapped a network drive) until I go on to the server and restart samba with /etc/init.d/samba restart - then everything works fine. I can ping the server with both ip and hostname but the network drive does not connect - this is straight after a reboot. Is the /etc/init.d/samba restart doing something differently to when the server boots? I have read several posts relating to printer sharing issues which point to samba not starting before cups so I am wondering if samba is starting before some of the relevant networking services.
True or False: If you have a user on your Linux/Samba machine with a password, example: User = Bob Password = Password0 And Bob is on an XP computer, where his username is also Bob and his password is also Password0, is it normal for Bob to go to:
\SambaServer, double click on Bob's share (valid users = Bob only) and Bob get RIGHT in without being prompted?
On my prior setup, the user HAD to log in. If they wanted auto login next time with their credentials, they had to check "remember password." But now it's as if Samba knows who they are. It's very strange. What's the normal behavior? Must EVERYBODY authenticate with passwords, or if the Windows credentials are the same as Samba does it just somehow auto-detect it and allow them through?
so i found an older computer i want to play with as a file server. ubuntu server edition, installed gnome GUI (to make things easier for now, i plan on removing it later) and used [URL].. to configure my 1.5tb harddrive so my windows machines can access it. i had everything working but than a fatal crash made me start from scratch (os and all) now i am unable to access the samba share from a machine running windows 7, but i can access it from a machine running windows XP using the same login and password i set up for windows 7.this makes me believe it's a problem with windows 7 and not samba.
In order to get my shares working I first have to connect to the windows shares from the Ubuntu machine. Then I can connect to the Samba shares from the windows machine. If I don't continue to use the shares. It'll drop the connection and I have to unmount the windows shares and start the process over. The wireless network still shows as being connected but I get an error on the windows machine if I try to connect. I've Googled this and it appears to be a Windows problem. I know this is a ubuntu forum but thought I'd ask for any info. I believe that this is also what is giving me shared printer issues as well.
I have a Debian and a Ubuntu box. I installed a samba server on Debian box. I can log in the samba share folders from Windows boxes. Since the samba server has SHARE security mode, I need password only. But when I try to log in the samba share folders from Ubuntu box using nautilus, it asks username, domain and password. I cannot log in share folders on the Debian box. There is no message. Nautilus keep showing the password input box until i cancel it.So I use smbmount command. It works well. But that way is not comfortable at all. Anyone can help me logging in samba share in nautilus?
How do I access a NAS Samba server on my network at home.I tried to add a machine in the pyNeighborhood program. I was able to add the machine and the program displayed the machine and all of the shares on the machine, but I was not able to log on. No place to enter my pass word.
I'm trying to setup two samba shares on ubuntu server 10.04.1 lts x64
The first is a Read-Only share for windows users that doesn't require a password. This i've managed to do so far.
The second is a Password protected Upload share. So far I am able to have both shares (which access the same directory) but am unable to log in to the pass word protected share.
I know i'm not doing things quite right, and would like a little bit of help
The smb.conf file is the default ubuntu file with these added shares:
I am trying to connect to my samba server with xubuntu, so far with no luck.
I am trying to use fusesmb and have been following these instructions:
[URL]
as well as these:
[URL]
and these
[URL]
the top ones say to use Applications - System - shared folders to setup smb client. Xubuntu maverick doesn't seem to have that menu point. So I copied the smb.conf from my desktop machine. libsmbclient is installed.
fuse as such seems to run since teh folder that i designated as mount point (~/Network) changes owner to root when i run fusesmb Network. But apart from that nothing happens.
I'm trying to set up an old computer that was donated to my by an aunt to hold my external hard drives and use it as a file server so i can use them from anywhere within my house. However I can not seem to get the samba server to broadcast/be seen by my ubuntu installation, nor my windows installation.
I've read the manual, to an extent, but I feel as if I am missing something. All I want is to have it to where I can just type in \server and bring up my files to access without having to worry about passwords.
I have a Samba server running on a box where I login to admin as user: FRED The Samba users are SUE JOE - Read only for specified paths (media playback access only user) SUE can read/write to any directory under the share: Media
So all that is working fine. As long as I do file operations remotely as SUE everything works remotely. How can I make it to where everything SUE does over Samba FRED automatically has permissions to edit when logged in locally (or SSH)? Also, remember, Joe needs to be able to read where specified.