bit-tech.net

Build your own server

Comments 301 to 325 of 586

Reply
Glider 23rd October 2007, 08:53 Quote
I think you copy/pasted from the site... The bit website uses a different encoding/font or something, which makes it go haywire. Just type the command yourself and it should be ok (I hope)
epfjr 23rd October 2007, 20:01 Quote
Great article - everything seems to be working except smartFTP I am receiving a "code 530 Login Incorrect". I am using the same login & password that I use for Samba - correct? I have no problem connecting with Samba or by typing the IP address into Internet Explorer.

I have used the fixes posted here to correct the proftpd.conf issue and am successful and stop/restart of this file.

I am very new to all this --- please help --- I am pulling my hair out.

Thanks, epfjr
spaggy 23rd October 2007, 21:34 Quote
Thanks a lot Glider, I never thought it'd be as easy as that. :)
Listen to this though: when I'm in nano editing the config.php file in torrentflux_2.3/sql/html, I type my password exactly where it's supposed to be between the two "s like in your image.
http://www.bit-tech.net/content_images/2007/06/build_your_own_server/torrentflux12.jpg

I go ctrl+x, y, but when I try to end it with enter, the error: [ Error writing config.php: Permission denied ] appears. What sort of permission do I need for this to work?
completemadness 24th October 2007, 00:02 Quote
Quote:
Originally Posted by epfjr
Great article - everything seems to be working except smartFTP I am receiving a "code 530 Login Incorrect". I am using the same login & password that I use for Samba - correct? I have no problem connecting with Samba or by typing the IP address into Internet Explorer.
SmartFTP uses an FTP password, not the samba password, these are 2 seperate things
(like SSH password, Samba Password, MySQL password, FTP Password, User Password, etc etc)
Quote:
Originally Posted by spaggy
Thanks a lot Glider, I never thought it'd be as easy as that. :)
Listen to this though: when I'm in nano editing the config.php file in torrentflux_2.3/sql/html, I type my password exactly where it's supposed to be between the two "s like in your image.
http://www.bit-tech.net/content_images/2007/06/build_your_own_server/torrentflux12.jpg

I go ctrl+x, y, but when I try to end it with enter, the error: [ Error writing config.php: Permission denied ] appears. What sort of permission do I need for this to work?
you need to sudo the nano, sudo nano /path/to/file

This is because the file is made by root, and you don't have permission to edit it

Glider works from a root shell (sudo su) however this is generally strongly unrecommended (as it mainly negates the point of sudo)
epfjr 24th October 2007, 01:58 Quote
Thanks for the reply, but I am still confused...

[QUOTE=completemadness]
SmartFTP uses an FTP password, not the samba password, these are 2 seperate things
(like SSH password, Samba Password, MySQL password, FTP Password, User Password, etc etc)

At the bottom of page 5 of the article Glider mentions that "Proftpd uses the standard password backend, so no extra configuration is required". I assumed that this was the same backend password created on the previous page for Samba - "We have to add all the users that use samba to that back-end. Don't worry, it's an easy step. Type smbpasswd -a Username and enter the password for that user". I guess you are telling me that this is not the case? If it isn't how do I configure FTP passwords in proFTPd?

thax epfjr
spaggy 24th October 2007, 13:11 Quote
Thanks completemadness, it worked. I'm beginning to understand this now. :)
DougEdey 24th October 2007, 13:37 Quote
AFAIK: ProFTPd uses the standard one, which means the groups and users defined in Linux. smb uses it's own set of files.
completemadness 24th October 2007, 21:43 Quote
Ah OK, hes used ProFTP

As DougEdey said, it uses standard UNIX accounts, samba makes its own accounts, as does SSH and other things
Glider 24th October 2007, 22:44 Quote
Quote:
Originally Posted by epfjr
Great article - everything seems to be working except smartFTP I am receiving a "code 530 Login Incorrect". I am using the same login & password that I use for Samba - correct? I have no problem connecting with Samba or by typing the IP address into Internet Explorer.

I have used the fixes posted here to correct the proftpd.conf issue and am successful and stop/restart of this file.

I am very new to all this --- please help --- I am pulling my hair out.

Thanks, epfjr
try, in a term
Code:
sudo /etc/init.d/proftpd restart
Quote:
Originally Posted by completemadness
you need to sudo the nano, sudo nano /path/to/file

This is because the file is made by root, and you don't have permission to edit it

Glider works from a root shell (sudo su) however this is generally strongly unrecommended (as it mainly negates the point of sudo)
No, I don't, this is probably because the user extracted the tar as root. I'm quite strict about using root myself, only when needed. And the sudo way of Ubuntu is about the worst way of doing administrative tasks
Quote:
Originally Posted by completemadness
Ah OK, hes used ProFTP

As DougEdey said, it uses standard UNIX accounts, samba makes its own accounts, as does SSH and other things
ProFTPd does use pam and shadow, the Linux standard password backend, so does SSH indeed. Samba uses a separate one.
WhiskeyAlpha 25th October 2007, 12:55 Quote
Is it just me or does www.torrentflux.com not actually exist?

Can anybody recommend a place to download the latest version?
Glider 25th October 2007, 13:04 Quote
The site is indeed down for a while, but don't fear, sourceforge to the rescue ;)

http://sourceforge.net/projects/torrentflux/
WhiskeyAlpha 25th October 2007, 13:08 Quote
Quote:
Originally Posted by Glider
The site is indeed down for a while, but don't fear, sourceforge to the rescue ;)

http://sourceforge.net/projects/torrentflux/

Cheers Glider ;).

And kudos on the server guides, it's the reason I now have a working linux box without a smashed monitor or keyboard :)
mikealex 28th October 2007, 13:37 Quote
This is a great article! Thanks Glider!
curiouscat 2nd November 2007, 05:42 Quote
I recently upgraded to Gutsy Gibbon and now I cannot log in as root using Ultra VNC from another desktop. Logging in as root via SSH (using PuTTY) works just fine, but I'm not really a CLI kinda-girl =). I still like to see the pretty wallpapers I installed on my Xubuntu box. Anyone have a tip for this issue? Thanks lots!
Glider 2nd November 2007, 09:42 Quote
Don't log in as root! log in as a user. X11VNC runs as a user (not as root!) for a reason.

Try creating the SSH tunnel as non-priviledged user and connect to the VNC session.

On a side note, by default you can't SSH in as root on a Ubuntu install, because root hasn't got a password set...
curiouscat 2nd November 2007, 19:50 Quote
Thanks for prompt response, Glider. I'm such a noob that I was confusing myself, mostly...LOL. All is well now. And thanks for such a great guide. =)
statmonkey 5th November 2007, 11:07 Quote
Great stuff but I seem to be missing some little detail somewhere. I have no problems with ftp, samba or putty but the VNC part is killing me.

I get the proper response from the vncpasswd ~/.vnc/passwd

When I type in: echo 5901 > ~.vnc/port
I receive:
-bash: /home/statmonkey/.vnc/port: Permission Denied

When I attempt to connect using vnc it asks for the password I set and then tells me VNC authentication failed!

I have tried reading through all of the comments to no avail, google, etc. Also have attempted as different users. sudo, without sudo, etc. but can neither get the first command to work nor get connected in VNC.

I am not using an international keyboard so that isn't it. As I said everything else seems to work fine and went smoothly. Just not sure what I missed. Any ideas?
Glider 5th November 2007, 11:31 Quote
Can you post the output of
Code:
 ls -al /home/statmonkey/.vnc 

I think you created the directory as root, without permissions to write in it for the user.
statmonkey 5th November 2007, 16:33 Quote
Hmm, that would mean I created the /.vnc directory with sudo instead of just a straight mkdir? Here is a screen shot. I know just enough to be completely dangerous. I thought I was going to be smart and pipe it into nano and then cut and paste. I got about halfway there before I realized I didn't know the commands, blah, blah. So I ended up having to rerun it several times before I could get a screen shot.

[img=http://img408.imageshack.us/img408/4629/lsvncfc0.th.jpg]
Glider 5th November 2007, 16:44 Quote
Like I tought, root owned :) You probably did it from a root shell (after you executed "sudo su")

No worries, the solution is simple:
Code:
sudo chown statmonkey:statmonkey /home/statmonkey/.vnc/*

EDIT: just to sound smart ;)
Code:
 ls -al /home/statmonkey/.vnc/ >> textfile
statmonkey 5th November 2007, 17:00 Quote
Think you qualify as smart already :)
Thanks for that, knew it was something stupid that I had done just needed a little help. Looks beautiful, thanks for finally pushing me back to Linux after several years away I guess I have forgotten a few things? Or never knew them LOL. Once again great job with the article and really appreciate the help.
_SYC_ 5th November 2007, 17:54 Quote
Hi I am using Xubantu version 7.10, codename Gutsy Gibbon. and don't seem to have the Samba application or the Open Office to remove, has anyone else come accross this?
Glider 5th November 2007, 18:31 Quote
Can you verify the output of (in a terminal)
Code:
sudo apt-cache search samba-common

If that gives you nothing, can you post the output of
Code:
cat /etc/apt/sources.list
spaggy 8th November 2007, 16:53 Quote
I'm having trouble adding another user to samba after configurating the file.
I type:
smbpasswd -a "myusername",
and type my new passwords, but I get the error: "Failed to modify password entry for user "myusername""
Any ideas?
Glider 8th November 2007, 19:38 Quote
That means the user is allready created I guess... Try
Code:
smbpasswd <username>
to change it
Log in

You are not logged in, please login with your forum account below. If you don't already have an account please register to start contributing.



Discuss in the forums