Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Linux/Samba permission from Windows

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

Linux/Samba permission from Windows
Reply
 
Thread Tools
Old 14-04-2006, 22:27   #1
jingleman
Guest
 
Posts: n/a
Linux/Samba permission from Windows

Have eventually got Ubuntu installed on old PC

I have installed Samba and having given permission to "shared docs" on C drive, (just test stuff in there) I can see this on the network via Ubuntu

However, from Windows I can not gain access to my Linux PC. It asks me for name and password (yes, I know my password and the root/admin password, and I know my logon name) what path etc should I be using in the Windows name filed in password box that pops up, or, as I think, how do I give an easy/full permission in Linux (like I could in Windows) so I am not asked for password/id?

I have just installed the basic Samba, but on looking in help got confused

It's been a long day, so be gentle

I also a couple of other hopefuly easy questions, but let's get this sorted first so I can create a batch file to transfer various files over to Linux PC.

Windows I'm used to, Linux is a whole new game. Realistically I just want to back-up stuff to old PC.

Thanks in advance,

Cheers
  Reply With Quote
Advertisement
Old 14-04-2006, 22:43   #2
Graham M
Inactive
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 41
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: Linux/Samba permission from Windows

You need to on the Linux command line type

smbpasswd -a <insertyourusernamehere>

it will ask you for a password and a confirmation, make the username password the same as your linux login and password and you should be able to get in
Graham M is offline   Reply With Quote
Old 15-04-2006, 13:10   #3
jingleman
Guest
 
Posts: n/a
Re: Linux/Samba permission from Windows

Quote:
Originally Posted by Zeph
You need to on the Linux command line type

smbpasswd -a <insertyourusernamehere>

it will ask you for a password and a confirmation, make the username password the same as your linux login and password and you should be able to get in
Zeph, thanks for the reply.

I think I need to take a step backwards first

When I type what you say (and remembering not to use the <> before and after my name), I get a bog standard help script. It suggest I login as root, but when I try to login as root at main screen it tells me a root admin can't. However, If I'm using a function that needs root functionality it prompts for password I enter and all is well.

So how/where do I login as root or to get in the terminal window as root?

I am just using my <name> not adding anykind of network // or \\
i.e. <me> not <me>@<w/s name>

I'm sure DOS is easier than this!
  Reply With Quote
Old 15-04-2006, 18:20   #4
deadite66
Inactive
 
deadite66's Avatar
 
Join Date: Jun 2003
Location: great yarmouth
Services: Zen Fibre, Asus RT-AC68U
Posts: 900
deadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these parts
Re: Linux/Samba permission from Windows

you need to run su or sudo on command line to log into admin account to run certain commands.
deadite66 is offline   Reply With Quote
Old 15-04-2006, 18:55   #5
jingleman
Guest
 
Posts: n/a
Re: Linux/Samba permission from Windows

Quote:
Originally Posted by deadite66
you need to run su or sudo on command line to log into admin account to run certain commands.
deadite66, you're a star, I can now see my home folder on Linux

Many thanks for all your help, most appreciated
  Reply With Quote
Old 15-04-2006, 19:11   #6
deadite66
Inactive
 
deadite66's Avatar
 
Join Date: Jun 2003
Location: great yarmouth
Services: Zen Fibre, Asus RT-AC68U
Posts: 900
deadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these parts
Re: Linux/Samba permission from Windows

i'm not a huge linux guru myself, took me ages to get things working through trial and error

here's a segment of my smb.conf that may help.
Quote:
#======================= Global Settings =====================================
[global]
log file = /var/log/samba/log.%m
restrict anonymous = no
ldap ssl = No
guest ok = yes
domain master = no
map to guest = Bad User
printer admin = @adm
dns proxy = no
netbios name = TRANQUIL_PC
read only = no
server string = Samba Server %v
max protocol = NT
workgroup = MSHOME
server signing = Auto
preferred master = no
max log size = 50

[movies]
valid users = lee
admin users = lee
case sensitive = no
path = /home/sharedfiles/movies/
vfs objects = recycle
recycle:repository = .recycle
recycle:keeptree = Yes
recycle:touch = Yes
recycle:versions = Yes
recycle:maxsize = 0
recycle:exclude = *.tmp *.temp *.o *.obj ~$* *.~??
recycle:excludedir = /tmp /temp /cache
recycle:noversions = *.doc *.xls *.ppt
the bit in bold may be the important line to writing files.
deadite66 is offline   Reply With Quote
Old 15-04-2006, 19:41   #7
jingleman
Guest
 
Posts: n/a
Re: Linux/Samba permission from Windows

Quote:
Originally Posted by deadite66
i'm not a huge linux guru myself, took me ages to get things working through trial and error

here's a segment of my smb.conf that may help.


the bit in bold may be the important line to writing files.
Cheers - I have now made my 'home' folder shared and can write to it from Windows PC

Yes, trial and error, though in my case most of it is the latter!
  Reply With Quote
Old 15-04-2006, 21:45   #8
deadite66
Inactive
 
deadite66's Avatar
 
Join Date: Jun 2003
Location: great yarmouth
Services: Zen Fibre, Asus RT-AC68U
Posts: 900
deadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these parts
Re: Linux/Samba permission from Windows

opps just noticed i bolded the wrong bit ment to do the `admin users ` line.
oh well
glad you got it working.
deadite66 is offline   Reply With Quote
Old 15-04-2006, 22:06   #9
jingleman
Guest
 
Posts: n/a
Re: Linux/Samba permission from Windows

Quote:
Originally Posted by deadite66
oh well
glad you got it working.
Yes, many thanks I've come on at a great pace today, thanks to your replies.

Now I have it working (of sorts) I even tested by batch file to copy over my files for backup purposes and it works

Firewall: I'm told one is installed, is this correct?

Anti-Virus software (don't worry, I had disconnected my broadband whilst 'playing')- AVG do Free linux, but they seem to be just for Mandrake, Red Hat etc. where & how do I get a freebie to install please?

That's enough for tonight "Happy Easter" to one and all
  Reply With Quote
Old 15-04-2006, 22:28   #10
deadite66
Inactive
 
deadite66's Avatar
 
Join Date: Jun 2003
Location: great yarmouth
Services: Zen Fibre, Asus RT-AC68U
Posts: 900
deadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these parts
Re: Linux/Samba permission from Windows

iptables would be installed but it needs to be configured, you open ports in linux its not really done by allowing programs access like on windows.
i use guarddog is an easy to use program http://www.simonzone.com/software/guarddog/

re: anti-virus this link sums up it up really.
http://ubuntuforums.org/showthread.php?t=53778
until a lot more people use linux its not worth the virus writers attention atm and the permission based system on linux would restrict what it could do.
deadite66 is offline   Reply With Quote
Old 15-04-2006, 23:08   #11
joker
Inactive
 
Join Date: Nov 2003
Location: West Yorkshire
Posts: 66
joker has a spectacular aura about themjoker has a spectacular aura about themjoker has a spectacular aura about themjoker has a spectacular aura about them
Re: Linux/Samba permission from Windows

Hi,

If you’re still interested in an anti-virus for linux there is one called ClamAV.

More information is available on the web site here: http://www.clamav.net/

Since Unbuntu is a debian based distribution then its worth looking at the debian binary packages that have already been compiled. (http://www.clamav.net/binary.html#pagestart)

Your best bet though to keep things easy, is to use the apt-get or aptitude package manager(s) to install it. (Unbuntu is based on Debian, which has one of the best package handling features around).

For a quick guide Unbuntu wiki offers a great step by step guide.

https://wiki.ubuntu.com/ClamAV?highlight=%28ClamAV%29


Just make sure you run the command in su / sudo mode.

You could if you wanted also use the graphical one in gnome.

Oh and just before you follow the wiki guide you might just want to run:
Quote:
apt-get update
- This will download the latest package list.

And

Quote:
apt-get upgrade
- This will upgrade any outdated software packages on your system.

Above should of been done my Unbuntu automatically, but hey its all practise right?

Hope this helps you out a little.

- Also just to add, as said above linux doesn’t really require one due to how it operates. However you may want to make use of it if you are transferring from windows systems. (clamav can pick up windows viruses, and no they wont harm the linux system!)
joker is offline   Reply With Quote
Old 16-04-2006, 15:24   #12
Tristan
Inactive
 
Tristan's Avatar
 
Join Date: Jun 2003
Location: Glastonbury!
Services: Telewest DTV & 4Meg BB (Bath), NTL DTV and 2Meg BB (Poole)
Posts: 1,350
Tristan has reached the bronze age
Tristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze ageTristan has reached the bronze age
Re: Linux/Samba permission from Windows

I don't use a firewall for Ubuntu, but if I did, I'd go for Firestarter, available in the repositories.

Likewise, until there is an actual live, widespread Linux virus (as opposed to proof-of-concept ones in a lab), I don't bother running any anti-virus software.
Tristan is offline   Reply With Quote
Old 16-04-2006, 17:54   #13
jingleman
Guest
 
Posts: n/a
Re: Linux/Samba permission from Windows

deadite66, joker & Tristan - thanks for your helpful replies, much appreciated

The only thing not working now is network printing .... but I'll leave that for another day!

Thanks again
  Reply With Quote
Old 25-08-2006, 21:43   #14
jingleman
Guest
 
Posts: n/a
Re: Linux/Samba permission from Windows

<time moves on 4 months>

I haven't given up on Linux yet ......

Anyhow, install Ubuntu on freshly formatted HDD on old PC. Installed OK. Follow all the previous advice on this thread, typing Su then smbpasswd -a <insertyourusernamehere> etc, accepted OK. I gain access via Windows, but can only see Printers & faxes and some Linux system files, so deinstall SAMBA, reinstall, this time I only get to see Printers & faxes via Windows (no linux files). I even give SAMBA permission at Root level, reboot, no difference. By this time getting a little angry , in desperation reistall Ubuntu & SAMBA and get only to see printer & faxes via Windows network (at least network prining now works ).

So what's changed, I assume we're now on to a later version of SAMBA maybe, should I be using some new command in terminal Window? I went to the smb.conf file as shown by deadite66, but somehow it now doesn't look like that in this thread.

All I want, for now, is to be able to move files via network (cross-over cable)
from Windows to Linux - then be able to at least 'read' from Linux via Windows - It worked before, what happened? I have Norton Internet Security on Windows, even disabled that just to see if that was limiting access somehow, but no difference, after giving SAMA permission all I can see via Windows is Linux printers & faxes.

Any SAMBA/Ubuntu experts out there who helped me before can see what has changed, or I am blindly misssing something obvious, please? I openly admit to being a dummy on Linux, but as I followed previous instructions step by step, can't see why not getting same results.

Hoping you can come to the rescue again, please?

Cheers
  Reply With Quote
Old 25-08-2006, 22:49   #15
deadite66
Inactive
 
deadite66's Avatar
 
Join Date: Jun 2003
Location: great yarmouth
Services: Zen Fibre, Asus RT-AC68U
Posts: 900
deadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these partsdeadite66 is just so famous around these parts
Re: Linux/Samba permission from Windows

hi

if you have your old smb.conf you should be able to use that, i moved from mandrake to kubuntu 5.10 and reused a lot of my config files so my example above should be usable
make sure to allow netbios on any firewall you have on windows.
deadite66 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:53.


Server: lithium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum