RSS Forums RSS
Please support our *nix Software advertiser: Lunarpages Linux Web Hosting

Cannot install samba

Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 364
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: Cannot install samba

  #10  
Jan 29th, 2004
Originally Posted by Dominick
simple howto on installing samba

tar -zxvf samba.foo (foo being the version)
cd samba.foo
./configure
su -
password
make
make install
cd /etc/samba
edit the samba config file with your favorite text editor.
You only need to be su for "make install", and it's better not to use the trailing hyphen when doing "su" so you remain in the same directory.

Example:

me@host$ pwd
/usr/src/samba/samba-3.0.1
me@host$ ./configure
...scrolling list of checks...
...scrolling list of checks...
...scrolling list of checks...

me@host$ make
...compiler runs...
...compiler runs...
...compiler runs...

me@host$ su
Password:

root@host# pwd
/usr/src/samba/samba-3.0.1
root@host# make install

You might also want to run updatedb after the install finishes, so you know where everything is located. The Samba configuration file is smb.conf (usually /etc/samba/smb.conf), but usually it gets installed as smb.conf.example or smb.conf.dist (depending on which platform you're on.)

When you use the hyphen with "su" all the environmental variables are loaded and applied to root's environment, like $SHELL, $PATH, $DISPLAY, and so on, and you are transferred to root's $HOME (usually /root )

By not using the trailing hyphen, you remain in the same directory, keep the same $SHELL (if root's $SHELL is different) and get what you want - root access. It's always recommended to install sudo, so you wouldn't have to go through all this to begin with. (me@host$ sudo make install)

Hope this helps to clear things up for you..
Last edited by TheOgre : Jan 29th, 2004 at 12:06 pm.
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 8:52 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC