You are not logged in.
So, I'm trying to enable samba support so I can grab files off my windows box. However, after installing both samba, gamin, and sambaclient, running sudo /etc/rc.d/gamin start and sudo /etc/rc.d/samba start gives me sudo: /etc/rc.d/gamin: command not found.
I looked in the rc.d directory, and there are no daemons matching samba or gamin. I'm trying to follow the wiki, but it doesn't list anything about this in troubleshooting. Am I doing something wrong?
Offline
Gamin isn't started as a daemon as the wiki states. Have you tried reinstalling samba?
Offline
Yeah, I've tried reinstalling it a few times. It still isn't in /etc/rc.d
Offline
gamin doesn't run as a daemon - it just needs to be installed.
/etc/rc.d/samba is part of the samba package. If it's not on your system, your copy of the package may be corrupt - delete it from your package cache and download it again.
Offline
Alright, after removing and reinstalling, samba is actually trying to start, but keeps failing.
Offline
Have you downloaded the package again or installed it from your package cache?
Offline
downloaded the package again.
Offline
pacman -Rnsc <samba_package>
pacman -Scc
(now you press the 'y' for yes)
pacman -Syy
pacman -S <samba_package>
If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.
Offline
Nobody can give you any useful answer to "it keeps failing". Post some more details.
Offline
Hmm, followed that to the letter and it still doesn't want to work.
I wish I could give you more detail. I was following the wiki:
http://wiki.archlinux.org/index.php/Samba
I added samba to rc.conf, but that shouldn't prevent it from running. I have cacti installed and running fine, but I didn't mess with samba during the setup. The install is new (1 day old) and I haven't gone nuts with packages or installs. I haven't added a GUI either.
pacman -Rnsc <samba_package>
pacman -Scc
(now you press the 'y' for yes)
pacman -Syy
pacman -S <samba_package>
Last edited by twopounder (2009-11-24 10:04:21)
Offline
If a daemon init script fails, you need to run the actual commands in the script in a terminal as root and check for errors.
Offline
have you configured the samba server ?
i mean the /etc/smb.conf or something like that ..
If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.
Offline
No, I haven't. I've only done what is in the wiki. Let me have a look at it.
- Okay, after reading through smb.conf.default, I'm noticing that everything is commented out. I ran testparm smb.conf.default without errors though. Is there a debug method for running a service? It would be helpful to know where exactly the service is failing at.
Last edited by twopounder (2009-11-24 12:00:31)
Offline
Both nmbd and smbd have man pages - I'd suggest you start there.
Offline
What DE are you using? In gnome you can see your windows share thro' the network option in nautilus without samba server running. To access your windows share, make that folder / drive shared and you should have a valid user name and password to access it from you GNU/Linux installation.
If you want to share your folders in your linux install you should have a working smb.conf in /etc/samba directory and not smb.conf.default.
At least you need this
[myshare]
comment = <put what you want>
path = /path/to/directory/toshare
valid users =usr1 usr2
public = no
writable = yes
printable = no
create mask = 0765
smb.conf.default is with full of self explanatory comments and not so hard to read.
Offline
I posted earlier that I am not using one. My server is 100% command line. I have absolutely no use for a GUI on this server.
The problem is that samba won't run, which means I'm not going to be able to get to the windows shares anyway. Until I get that resolved, I can't really do anything with files.
What DE are you using? In gnome you can see your windows share thro' the network option in nautilus without samba server running. To access your windows share, make that folder / drive shared and you should have a valid user name and password to access it from you GNU/Linux installation.
If you want to share your folders in your linux install you should have a working smb.conf in /etc/samba directory and not smb.conf.default.
At least you need this
[myshare]
comment = <put what you want>
path = /path/to/directory/toshare
valid users =usr1 usr2
public = no
writable = yes
printable = no
create mask = 0765smb.conf.default is with full of self explanatory comments and not so hard to read.
Offline
ok. Have you reinstalled samba as suggested? or even you can try to install it with different mirrors.
Offline
I posted earlier that I am not using one. My server is 100% command line. I have absolutely no use for a GUI on this server.
The problem is that samba won't run, which means I'm not going to be able to get to the windows shares anyway. Until I get that resolved, I can't really do anything with files.
I don't really know how samba works, but probably you need to have a correct config file before starting the daemon (and it has to be called smb.conf, instead of smb.conf.default). If you want to debug more verbosely, check the rc.d script and run the command that actually starts the service (for example, for syslog-ng the command is /usr/sbin/syslog-ng).
Btw, I'm pretty sure that you don't need the samba server running to access windows shares.
Offline
Yeah, its used for windows to access linux shares, but I wanted a fully capable network. Oh well, it's not extremely important, so long as cacti and LAMP functions properly.
Offline