LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2011, 06:20 PM   #1
static360
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Rep: Reputation: Disabled
Another samba trouble


Ok i have searched this forum and i saw some stuff on some of the problems and i tried them but still nothing. as a bit of info i am a student at a university taking redhat course and am on one of the workbooks and it is due next week and i am f**king furstrated with this damn samba. this is the output of the grading script if by any chance anybody can offer some sort of solution or so i am willing to trying anything at this point for the part that it said username my redhat username goes in there but i replaced it with username.


Results
stdout
10/20/11 13:10:37 @rha@ checkpoint username can connect
cmd: su - username -c "smbclient -U username%password -c 'ls' //localhost/private"
command return code: 1
comamnd stdout:
session setup failed: NT_STATUS_LOGON_FAILURE

10/20/11 13:10:37 @rha@ result 0 10 the command 'smbclient -U username%password -c 'ls' //localhost/private' failed
10/20/11 13:10:37 @rha@ checkpoint username can download getme
cmd: su - username -c "smbclient -U username%password -c 'get getme' //localhost/private"
command return code: 1
comamnd stdout:
session setup failed: NT_STATUS_LOGON_FAILURE

10/20/11 13:10:38 @rha@ result 0 10 the command 'smbclient -U username%password -c 'get getme' //localhost/private' failed
10/20/11 13:10:38 @rha@ checkpoint username can upload putme
cmd: su - username -c "smbclient -U username%password -c 'put /tmp/putme putme.username' //localhost/private"
command return code: 1
comamnd stdout:
session setup failed: NT_STATUS_LOGON_FAILURE

10/20/11 13:10:38 @rha@ result 0 10 the command 'smbclient -U username%password -c 'put /tmp/putme putme.username' //localhost/private' failed
10/20/11 13:10:38 @rha@ checkpoint username_a can connect
cmd: su - username -c "smbclient -U username_a%password -c 'ls' //localhost/private"
command return code: 1
comamnd stdout:
session setup failed: NT_STATUS_LOGON_FAILURE

10/20/11 13:10:39 @rha@ result 0 10 the command 'smbclient -U username_a%password -c 'ls' //localhost/private' failed
10/20/11 13:10:39 @rha@ checkpoint username_a can download getme
cmd: su - username -c "smbclient -U username_a%password -c 'get getme' //localhost/private"
command return code: 1
comamnd stdout:
session setup failed: NT_STATUS_LOGON_FAILURE

10/20/11 13:10:39 @rha@ result 0 10 the command 'smbclient -U username_a%password -c 'get getme' //localhost/private' failed
10/20/11 13:10:39 @rha@ checkpoint NOT username_a can upload putme
cmd: su - username -c "smbclient -U username_a%password -c 'put /tmp/putme putme.username_a' //localhost/private"
command return code: 1
comamnd stdout:
session setup failed: NT_STATUS_LOGON_FAILURE

10/20/11 13:10:40 @rha@ result 10 10 NOT username_a can upload putme
10/20/11 13:10:40 @rha@ checkpoint NOT username_b can connect
cmd: su - username -c "smbclient -U username_b%password -c 'ls' //localhost/private"
command return code: 1
comamnd stdout:
session setup failed: NT_STATUS_LOGON_FAILURE

10/20/11 13:10:40 @rha@ result 10 10 NOT username_b can connect
10/20/11 13:10:40 @rha@ score 20 70

checkpoint: username can connect
score: 0 out of 10 the command 'smbclient -U username%password -c 'ls' //localhost/private' failed

checkpoint: username can download getme
score: 0 out of 10 the command 'smbclient -U username%password -c 'get getme' //localhost/private' failed

checkpoint: username can upload putme
score: 0 out of 10 the command 'smbclient -U username%password -c 'put /tmp/putme putme.username' //localhost/private' failed

checkpoint: username_a can connect
score: 0 out of 10 the command 'smbclient -U username_a%password -c 'ls' //localhost/private' failed

checkpoint: username_a can download getme
score: 0 out of 10 the command 'smbclient -U username_a%password -c 'get getme' //localhost/private' failed

checkpoint: NOT username_a can upload putme
score: 10 out of 10 NOT username_a can upload putme

checkpoint: NOT username_b can connect
score: 10 out of 10 NOT username_b can connect
Score: 28 out of 100
 
Old 10-20-2011, 06:24 PM   #2
static360
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
This is the exercise that am doing

Specification

In this exercise you will create a Samba share called "private", which will be access-controlled depending on the user who connects.

Ensure that Samba service is installed and ready.

Create a group called trusted. Make your primary and your secondary accounts (<username> and <username>_a) members.

Create the directory /var/shared/private (it may already exist from a previous exercise).

Make the directory group-owned by trusted and writable by user and group.

Create a file called /var/shared/private/getme and ensure it it is readable by everyone.

Open /etc/smb.conf and add a share called private.

Make the share accessible only by members of the trusted group.

Make the share read-only, except for your primary account, which should have write access.

Reload you samba configuration and test.

For example, the following smb.conf entry would satisfy these requirements:

[private]
path = /var/shared/private
valid users = @trusted
writable = no
write list = elvis

Deliverables

The directory /var/shared/private should be shared via SMB

The share should only be accessible to members of the trusted group, which should include your primary and secondary accounts.

The share should only be writable by your primary account
 
Old 10-20-2011, 07:14 PM   #3
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,429

Rep: Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348
As you are a student, all I will say is that the answer is contained here. http://www.samba.org/samba/docs/man/...FastStart.html
 
Old 10-20-2011, 09:45 PM   #4
static360
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Well as i was reading over the script again for the 100th time it seems the grading script said to assign a specific password for the users that was stated and i assigned a different one to the users, FML for spending hours on this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Trouble with Samba RobertX Linux - Software 2 05-28-2011 05:14 PM
Trouble mounting Samba share from Windows Mobile 6.1 - samba weirdness cleidh_mor Linux - Server 0 09-21-2008 03:43 PM
Samba trouble c0uchm0nster Linux - Networking 21 05-20-2005 12:00 PM
samba trouble mattymcg88 Linux - Networking 7 06-02-2003 09:57 PM
Samba trouble bjojoi Linux - Networking 8 02-17-2003 03:35 PM


All times are GMT -5. The time now is 08:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration