1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bits Build your own server

Discussion in 'Article Discussion' started by Da Dego, 5 Jun 2007.

  1. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    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
     
  2. statmonkey

    statmonkey What's a Dremel?

    Joined:
    5 Nov 2007
    Posts:
    15
    Likes Received:
    0
    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.
     
  3. _SYC_

    _SYC_ What's a Dremel?

    Joined:
    5 Nov 2007
    Posts:
    1
    Likes Received:
    0
    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?
     
  4. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    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
     
  5. spaggy

    spaggy What's a Dremel?

    Joined:
    20 Oct 2007
    Posts:
    22
    Likes Received:
    0
    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?
     
  6. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    That means the user is allready created I guess... Try
    Code:
    smbpasswd <username>
    to change it
     
  7. seminole2005

    seminole2005 What's a Dremel?

    Joined:
    10 Nov 2007
    Posts:
    1
    Likes Received:
    0
    Glider,

    I am not sure if this is the correct way to fix your error however it worked for me. The users that I wanted to add to samba, I added them as a user to the machine first.
     
  8. completemadness

    completemadness What's a Dremel?

    Joined:
    11 May 2007
    Posts:
    887
    Likes Received:
    0
    yes that is right
     
  9. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Yeah, it needs to be a system user too (otherwise there are conflicts with UID/GID's and such, as homedir problems...)
     
  10. spaggy

    spaggy What's a Dremel?

    Joined:
    20 Oct 2007
    Posts:
    22
    Likes Received:
    0
    Well, it kinda worked. You can also just go
    Code:
    nano smbpasswd
    to see what users exist, I found out :)
    Anyway, I have kind of a big question here. I want to have permission to write and view the files on my server on my Windows XP workstation. When I access the network, I want to be able to manage the contents of the homedir on my server, such as deleting and organising. When I type \\[insert IP]\homes on XP and log on with my user with my Xubuntu password, I can only view the files, not edit them. Also, would it be possible to have access to the entire /home dir with Samba on my XP? I tried to log on to my server on XP as root, but my password wouldn't allow it..
     
  11. spaggy

    spaggy What's a Dremel?

    Joined:
    20 Oct 2007
    Posts:
    22
    Likes Received:
    0
  12. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Samba should have RW access to the whole dir...

    check that
    Code:
            browseable = yes
            writable = yes
            security mask = 0700
            create mask = 0700
    is set in your samba config file (/etc/samba/config)

    Also, to make the entire /home available, add the following to that file:
    Code:
    [home]
            comment = Home
            path = /homebrowseable = yes
            writable = yes
            security mask = 0700
            create mask = 0700
    And don't forget to restart samba (sudo /etc/init.d/samba restart).
     
  13. spaggy

    spaggy What's a Dremel?

    Joined:
    20 Oct 2007
    Posts:
    22
    Likes Received:
    0
    Thanks, I now have RW access to /home. :) Great!
    The only problem is that I can't edit the torrent directories I've downloaded, even though I'm not downloading or seeding them! This is actually only true for one torrent, but I suspect it's the same for all downloaded files. Is there a way around?
    I would just like to thank you good now for this guide, now that stuff is beginning to work I can totally see the benefits this will have in time. And it's useful now, too!
     
  14. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Edit? On the server? Well, same procedure as allways, what does
    Code:
     ls -al <path> 
    give?
     
  15. Woodstock

    Woodstock So Say We All

    Joined:
    10 Sep 2006
    Posts:
    1,783
    Likes Received:
    2
    is it possible to make it so that users have the rights to read and write files but not be able to delete anything in a shared folder
     
  16. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    It surely is... Look into ACL's (Access Control Lists). It isn't that hard to do, but up first it's quite intimidating.
     
  17. Woodstock

    Woodstock So Say We All

    Joined:
    10 Sep 2006
    Posts:
    1,783
    Likes Received:
    2
    cool thanks at least i know where to look
     
  18. spaggy

    spaggy What's a Dremel?

    Joined:
    20 Oct 2007
    Posts:
    22
    Likes Received:
    0
    Yeah, I want to be able to change filenames, organise and delete what I've downloaded.
    Output was:
    Code:
    total 84264
    drwxr-xr-x  2 www-data www-data    4096 2007-11-13 12:22 .
    drwxr-xr-x 14 www-data www-data    4096 2007-11-13 22:18 ..
    -rw-r--r--  1 www-data www-data 1523295 2007-11-13 00:19 01  The Chemical Brothers - No Path To Follow.mp3
    -rw-r--r--  1 www-data www-data 9431501 2007-11-13 00:19 02  The Chemical Brothers - We Are The Night.mp3
    -rw-r--r--  1 www-data www-data 6775161 2007-11-13 00:18 03  The Chemical Brothers - All Rights Reversed.mp3
    -rw-r--r--  1 www-data www-data 6929388 2007-11-13 00:19 04  The Chemical Brothers - Saturate.mp3
    -rw-r--r--  1 www-data www-data 7997065 2007-11-13 00:19 05  The Chemical Brothers - Do It Again.mp3
    -rw-r--r--  1 www-data www-data 8390156 2007-11-13 00:19 06  The Chemical Brothers - Das Spiegel.mp3
    -rw-r--r--  1 www-data www-data 5248565 2007-11-13 00:19 07  The Chemical Brothers - The Salmon Dance.mp3
    -rw-r--r--  1 www-data www-data 9914244 2007-11-13 00:19 08  The Chemical Brothers - Burst Generator.mp3
    -rw-r--r--  1 www-data www-data 8560056 2007-11-13 00:19 09  The Chemical Brothers - A Modern Midnight Conversation.mp3
    -rw-r--r--  1 www-data www-data 8417114 2007-11-13 00:19 10  The Chemical Brothers - Battle Scars.mp3
    -rw-r--r--  1 www-data www-data 3482479 2007-11-13 00:19 11  The Chemical Brothers - Harpoons.mp3
    -rw-r--r--  1 www-data www-data 9438397 2007-11-13 00:19 12  The Chemical Brothers - The Pills Won't Help You Now.mp3
    It's We Are The Night, by Chemical Bros.. :p
    (on a side note, I discovered that when the path name has spaces in it, like my dir had, you gotta type a \ and then a space instead of just space to make it work. Is that normal?)
     
  19. DougEdey

    DougEdey I pwn all your storage

    Joined:
    5 Jul 2005
    Posts:
    13,933
    Likes Received:
    33
    Yes, that's 100% normal, the shell will count the space as a token seperator otherwise.

    If you want to make it easier, start to type the file path then press tab after a few characters and it will fill it automagically!
     
  20. spaggy

    spaggy What's a Dremel?

    Joined:
    20 Oct 2007
    Posts:
    22
    Likes Received:
    0
    I see :)
    I know about the TAB press thing, but to me it just listed the suggestions instead of autofilling them, so I had to type anyway. Also, the reason I didn't just type cd Chemical* or something is because there are other dirs that begin with the same.. Is the TAB thing meant to autocomplete btw? Because it isn't with me..
     
Tags: Add Tags

Share This Page