Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: cdhgold on 24 April 2003, 20:29

Title: Samba Command line
Post by: cdhgold on 24 April 2003, 20:29
I'm using Redhat 9 with Samba services running. I used the GUI tools in GNOME to set it up but am still learning how to manage things command line. How can i go about managing my samba config including fileand printer sharing via the command line and not the GUI?

Chris
Thanks in Advance
Title: Samba Command line
Post by: Doogee on 24 April 2003, 22:12
edit the stuff in /etc/samba/smb.conf


Its pretty well commented.


then restart samba service, im not sure how its done in redhat (# service smb restart) but on slack 9 i do # /etc/rc.d/rc.samba restart
Title: Samba Command line
Post by: Pantso on 24 April 2003, 23:40
quote:
Originally posted by cdhgold:
I'm using Redhat 9 with Samba services running. I used the GUI tools in GNOME to set it up but am still learning how to manage things command line. How can i go about managing my samba config including fileand printer sharing via the command line and not the GUI?

Chris
Thanks in Advance



I'll agree with Doogee. Edit the smb.conf file, under /etc/samba/smb.conf and then restart samba. I don't know however where the startup scripts for samba and other daemons are installed in redHat 9 though. I believe that something like:

Code: [Select]

would do the job.