LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-17-2006, 06:27 AM   #1
bigfredcrane
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Rep: Reputation: 0
Network only goes one way


I can move or open files from the Ubuntu box into the XP Pro box but not the other way around. When I try to open files I have just moved to Ubuntu from the XP I get a request for user and password. I have tried every combination I can think of but nothing works. Installed Samba but it made no difference.
 
Old 10-17-2006, 11:03 PM   #2
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
It's because Ubuntu uses a different account for regular shares. There's 2 ways to solve this problem:
1) Create a username/password using smbpasswd and then use it to log in from the Windows station.
2) Change the line security = user to security = share in the file /etc/samba/smb.conf
 
Old 10-18-2006, 06:59 AM   #3
bigfredcrane
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Original Poster
Rep: Reputation: 0
I must have missed something, I am very new to Ubuntu. When I try to open smbpasswd it will not respond. When I go the other route and type in the command to view the file I get a response alon the lines of bash: file not found. Thanks
 
Old 10-18-2006, 07:11 AM   #4
bigfredcrane
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Original Poster
Rep: Reputation: 0
It seems that I can't make a change because I'm not logged in as owner but as a user, how do I log in as owner? I only set up one user and password and that does not come up as owner, I tried root and my password but it rejects that. So new it hurts.
 
Old 10-18-2006, 07:42 AM   #5
twilli227
Member
 
Registered: May 2003
Location: S.W. Ohio
Distribution: Ubuntu, OS X
Posts: 760

Rep: Reputation: 30
Quote:
twilli@ubuntu:~$ sudo su
Password:
root@ubuntu:/home/twilli#
root@ubuntu:/home/twilli# exit
exit
twilli@ubuntu:~$
Use the same password that you settup with. Make sure you type quit when you are done so you log out of root(owner).
You can also use sudo command - replace command with what you want to do:
Quote:
twilli@ubuntu:~$ sudo ifconfig

Last edited by twilli227; 10-18-2006 at 07:44 AM.
 
Old 10-18-2006, 10:46 AM   #6
bigfredcrane
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Original Poster
Rep: Reputation: 0
I'm just not getting it I guess, I got into root and when I start smbpasswd I enter a new password but I think that associates to root? I then try the password with root as the user and fred as the user both are denied.
 
Old 10-18-2006, 12:04 PM   #7
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
Let's create an account called fred which will be used to authenticating remote shares:
sudo -a fred
First, you'll get asked for your administrator password (used for sudo). After that you'll be asked to enter the password for fred as a samba user. Enter it twice (for confirmation) and then use this newly created account to log in from the Windows box into Ubuntu.
I should add that for this to work, fred has to be a valid Ubuntu user.
 
Old 10-18-2006, 08:39 PM   #8
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
When running a GUI application when root/admin access is required you will be usually prompted for your personal password. In truth, you gain access to root items by being in the admin group. First account established is by default in the admin group. If root access is required for a terminal command, precede the comand with sudo as in "sudo ifconfig". You will be prompted for your personal password. Subsequent use of sudo in that terminal session will remember your password and not ask for it.
 
Old 10-19-2006, 08:48 AM   #9
bigfredcrane
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Original Poster
Rep: Reputation: 0
I must still be missing something, in addition to the above I used the graphical interface, since I'm still a newbie, and I get no access. I create a new user, give him a password and make him the owner and still no access from the windowsxp computer. I changed the user group to admin and no access, the only thing I havn't done is restart the computer but none of you guys mention it so I assume it isn't necessary.
 
Old 10-19-2006, 10:31 AM   #10
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
The problem is some posts tend to mislead a bit. There's 2 sets of accounts: one for the computer (Ubuntu accounts) and another one for windows networking (Samba accounts).
When you get asked for a password when accessing shares from a windows account, it refers to Samba account users/passwords.
If it's a home network and security is not a problem, I suggest you change the security type to share instead of user. That will "just work", although not as secure.
 
Old 10-19-2006, 11:21 AM   #11
bigfredcrane
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Hey Redeye by now you should have figured out I'm a newbie, not your regular newbie buy a very analog newbie. I'm willing to make the change from user to share but who where and how come to mind. If you have the time, thanks. So new it hurts.
 
Old 10-19-2006, 04:04 PM   #12
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
It's no problem, asking is the right way to go
Type gksudo gedit /etc/samba/smb.conf to open the configuration file.
Look for the following line: security = user and change it to security = share
After the change reboot or restart the service with sudo /etc/init.d/samba restart
Now the shares should be easily accessible with no password needed.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora C2 - Wireless network drivers? Broadcom 802.11g Network Adapter FragTek Linux - Wireless Networking 7 01-22-2010 12:10 AM
Debian 3.1r0a, Realtek RTL-8169 network controller slow on network mvr853 Linux - Networking 0 07-21-2006 08:20 PM
3c905C network card in docking station. Cannot activate network device eth0. pathelms Linux - Networking 4 04-12-2006 02:55 PM
Xandros mount point for Windows Network & NFS Network jaagut Linux - Distributions 1 09-14-2005 07:21 AM
Network speed problems on 15 user network to broadband wireless router AntWarrior Linux - Wireless Networking 2 12-02-2004 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration